{"id":"CVE-2026-4480","title":"Samba: samba: remote code execution in printing subsystem via unescaped job description","summary":"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\"\nsubstitution character without escaping shell meta charac…","severity":"critical","cvss":9,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-78"],"vendor":"Red Hat","product":"samba","affected":["samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba (all versions)","samba","samba4","openshift/ose-rhel-coreos-8 (all versions)","openshift/ose-rhel-coreos-9"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-26T00:00:00+00:00"},"exploitAvailable":true,"published":"2026-05-26","updated":"2026-11-04","sourceUpdated":"2026-11-04T22:28:15.336Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-4480","references":[{"url":"https://access.redhat.com/errata/RHSA-2026:22644","label":"RHSA-2026:22644"},{"url":"https://access.redhat.com/errata/RHSA-2026:22963","label":"RHSA-2026:22963"},{"url":"https://access.redhat.com/errata/RHSA-2026:25049","label":"RHSA-2026:25049"},{"url":"https://access.redhat.com/errata/RHSA-2026:25979","label":"RHSA-2026:25979"},{"url":"https://access.redhat.com/errata/RHSA-2026:28053","label":"RHSA-2026:28053"},{"url":"https://access.redhat.com/errata/RHSA-2026:28054","label":"RHSA-2026:28054"},{"url":"https://access.redhat.com/errata/RHSA-2026:28055","label":"RHSA-2026:28055"},{"url":"https://access.redhat.com/errata/RHSA-2026:28056","label":"RHSA-2026:28056"},{"url":"https://access.redhat.com/errata/RHSA-2026:28057","label":"RHSA-2026:28057"},{"url":"https://access.redhat.com/errata/RHSA-2026:28058","label":"RHSA-2026:28058"},{"url":"https://access.redhat.com/errata/RHSA-2026:28132","label":"RHSA-2026:28132"},{"url":"https://access.redhat.com/security/cve/CVE-2026-4480"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452232","label":"RHBZ#2452232"},{"url":"https://bugzilla.samba.org/show_bug.cgi?id=16033"}],"tags":["cve.org","exploit-available"],"epss":0.1393,"epssPercentile":0.96554,"exploits":{"github":8,"githubRepos":["https://github.com/TheCyberGeek/CVE-2026-4480-PoC","https://github.com/0xBlackash/CVE-2026-4480","https://github.com/saitoken241/CVE-2026-4480-POC"],"nuclei":["javascript/cves/2026/CVE-2026-4480"],"checkedAt":"2026-11-05T21:36:37.217Z"},"ingestedAt":"2026-11-05T21:36:00.647Z","slug":"CVE-2026-4480","body":"## Overview\n\nA 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\"\nsubstitution 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.\n\n## Affected\n\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba (all versions)`\n- `samba`\n- `samba4`\n- `openshift/ose-rhel-coreos-8 (all versions)`\n- `openshift/ose-rhel-coreos-9`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n### Workarounds\n\nRemove ```\"%J\"``` from the \"print command\" in ```smb.conf``` entry.","depth":"abyssal","depthScore":64,"depthScoreParts":{"impact":49.5,"likelihood":2.8,"exploitation":12,"ransomware":0},"changes":[]}