CVE-2026-4480
A flaw was found in the Samba printing subsystem. Samba passes the client-controlled job description string to the command configured with the "print command" setting via the "%J" substitution character without escaping shell meta characters. A remote attacker could exploit this vulnerability by sending a specially crafted print job description that contains unescaped shell characters. This could lead to remote code execution on the affected system.
- Affected products
- Linuxmint, Rocky Linux, Samba, Ubuntu
- Redhat Openshift Container Platform
- = 4.0
- Samba
- < 4.2.1
- Redhat Enterprise Linux
- = 7.0, 8.0, 9.0, 10.0
- Fix
- Available
- CVSS 3.1
- 9.8 CRITICAL
- EPSS
- 13.9% (96th percentile)
- Weakness
- CWE-78
- NVD status
- Modified
- Published
- 2026-05-26
Workaround
Remove ```"%J"``` from the "print command" in ```smb.conf``` entry.
CVE-2026-4480 at NVD
16 known exploits for CVE-2026-4480
Proof-of-concept code and exploit modules indexed by Sploitus
CVE-2026-4480-exploit-poc
CVE-2026-4480
CVE-2026-4480-POC
CVE-2026-4480-PoC
CVE-2026-4480-PoC
CVE-2026-4480
ForgottenButNotGone
security-research
π Samba Print Command Injection
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
Exploit for OS Command Injection in Redhat Openshift_Container_Platform
π Samba SMB Printer Queue Command Injection / Remote Task Delivery