CVE-2026-4480
Samba: samba: remote code execution in printing subsystem via unescaped job description
A public proof of concept exists; no exploitation attested.
- Published2026-05-26
- Fixed in4.2.1
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-05-2613:56CVE publishedCNA
- 2026-05-2615:16CVE publishedNVD
- 2026-12-0204:55EPSS crossed 10 %FIRST EPSS
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.1.0, < 4.2.1 | 4.2.1 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.0 | = 7.0 | no fix published | NVD |
| 8.0 | = 8.0 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.0 | = 4.0 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA18 products
As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Red Hat Enterprise Linux 10other versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.23.5-109.el10_2
- Red Hat Enterprise Linux 10.0 Extended Update Supportother versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.21.3-114.el10_0.1
- Red Hat Enterprise Linux 7 Extended Lifecycle Supportother versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.10.16-26.el7_9.1
- Red Hat Enterprise Linux 8other versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.19.4-16.el8_10
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportother versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.13.3-12.el8_4.1
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onother versions: affected
package sambahttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:4.13.3-12.el8_4.1
12 more products in the CVE record.
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-26
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- ctdbRed Hat:rhel_eus:9.6::resilientstorageall versions · fixed in 0:4.21.3-14.el9_6.1and 28 other packages
- ctdbRed Hat:enterprise_linux:9::resilientstorageall versions · fixed in 0:4.23.5-10.el9_8and 28 other packages
- ctdbRed Hat:enterprise_linux:7::serverall versions · fixed in 0:4.10.16-26.el7_9.1and 2 other packages
- sambaTuxCare:Ubuntu:20.04all versions · fixed in 2:4.15.13+dfsg-0ubuntu0.20.04.8+tuxcare.els4and 18 other packages
- sambaTuxCare:RHEL:7all versions · fixed in 4.10.16-25.el7_9.tuxcare.els10and 26 other packages
- sambaTuxCare:OracleLinux:7all versions · fixed in 4.10.16-25.0.9.el7_9.tuxcare.els10and 26 other packages
- sambaTuxCare:CentOS:8.5all versions · fixed in 4.14.5-9.el8.5.tuxcare.els1and 25 other packages
- sambaTuxCare:CentOS:8.4all versions · fixed in 4.13.3-5.el8.4.tuxcare.els9and 26 other packages
44 more package ranges on OSV.dev
Vendor advisories
samba: Samba: Remote Code Execution in printing subsystem via unescaped job description
libsmbclient as a component of Red Hat Enterprise Linux 6 · libsmbclient-devel as a component of Red Hat Enterprise Linux 6 · samba as a component of Red Hat Enterprise Linux 6 · +27 more
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
Red Hat Security Advisory: samba security update
6 more advisories
Fix
- Update Samba to 4.2.1
- Vendor fix Red Hat Product Security RHSA-2026:28132 · 145 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2026:28132 · 145 productsRemove ```"%J"``` from the "print command" in ```smb.conf``` entry.
Advisories and patches
- access.redhat.comMitigation
- bugzilla.samba.orgVendor Advisory
Detection
read 2026-12-03 04:56 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub8 repositories, unverifiedknown since 2026-12-03TheCyberGeek/CVE-2026-4480-PoCrobinxiang/CVE-2026-4480achrafzaryouh/CVE-2026-4480saitoken241/CVE-2026-4480-POCVusal777/CVE-2026-4480-exploit-poc
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-05-26
- CNACVSS 3.192026-11-26
- NVDCVSS 3.19.8read 2026-11-26
- CNAweakness (CWE)CWE-782026-11-26
- FIRST EPSSEPSS score28.7 %read 2026-12-04
- PoC-in-GitHubproof of concept8known since 2026-12-03
- ProjectDiscoverydetectionread 2026-12-04
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-88880same flawAzure Linux · MIT
- EUVD-2026-31828same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-hwwh-4hhw-h9jfsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2026:22644advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:22963advisory covering several CVEsAlmaLinux · MIT
- ALSA-2026:25049advisory covering several CVEsAlmaLinux · MIT
- DLA-4692-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6297-1advisory covering several CVEsDebian · LicenseRef-unstated
- OESA-2026-2574advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-2575advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-2576advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2026-2577advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2026:10884-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:20905-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:21540-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2026:22644advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:22963advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:25049advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:25979advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28053advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28054advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28055advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28056advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28057advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28058advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:28132advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2026:22644advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2026:22963advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2026:25049advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2026:22045-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:22080-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:23003-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:23129-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:23152-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-8306-1advisory covering several CVEsUbuntu
- USN-8306-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-05-26
- Last modified
- 2026-11-26
- NVD status
- Modified
- GitHub advisory
- GHSA-hwwh-4hhw-h9jf
Frequently asked questions
What is CVE-2026-4480?
Is CVE-2026-4480 actively exploited?
What is the CVSS score for CVE-2026-4480?
Running samba? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-hwwh-4hhw-h9jf
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0