Samba Print Command RCE (CVE-2026-4480)
A configuration-side page for the Samba print command injection in CVE-2026-4480: the %J substitution passes a job name to the shell unescaped.
A configuration-side page for the Samba print command injection in CVE-2026-4480: the %J substitution passes a job name to the shell unescaped.
This page covers CVE-2026-4480, the Samba command injection in the printing subsystem, and its honest detection story is configuration-side: there is nothing useful to probe remotely, because the bug fires only where a legacy printer-sharing setup sets a print command, and modern Samba defaults do not. Where the configuration exists, the client-controlled print job description reaches the configured command through the %J substitution without escaping shell metacharacters, so a crafted job name executes arbitrary commands as the Samba process user. That configuration gate is why Red Hat scores 9.0 while NVD carries 9.8, and this page keeps both numbers with the reasoning. Fixed packages ship through the Red Hat errata and equivalent vendor updates, and the version gate is the distro package, not upstream semver. The page walks the configuration review that decides exposure, feeding exposure management from the host side.
The transcript below is illustrative and does not come from a real run. It shows the configuration evidence an operator collects while triaging.
$ testparm -s 2>/dev/null | grep -iE 'print command|printing ='
printing = cups
print command = /usr/bin/lpr -P%p %s; rm %s
$ rpm -q samba
samba-4.19.4-3.el9.x86_64Because a remote probe that proves the bug is a print job whose description carries shell metacharacters, which is already the exploit executed on the target. The honest check is reading smb.conf, which needs no exploit at all and answers the question completely.
NVD scores 9.8 by treating the print path as default; Red Hat scores 9.0 because exploitation requires a print command configuration that modern Samba does not set. This page keeps both and explains the gate, which is the honest summary.
Anyone who can submit a print job to the affected share, with the commands running as the Samba process user. That makes an internally reachable print server with print command configured a real risk from any compromised workstation, not just from the internet.
The affected distro lines carry it, fixed by the Red Hat errata and equivalent vendor updates. Compare distro package versions, not upstream semver, because backports do not move the upstream version string.
Get a personalized demo
A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.