Skip to main content
Public proof of conceptFix available

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?

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
  1. 2026-05-2613:56CVE publishedCNA
  2. 2026-05-2615:16CVE publishedNVD
  3. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD
Samba
BranchAffectedFixed in
4.x≥ 4.1.0, < 4.2.14.2.1
Redhat enterprise linux
BranchAffectedFixed in
7.0= 7.0no fix published
8.0= 8.0no fix published
9.0= 9.0no fix published
10.0= 10.0no fix published
Redhat openshift container platform
BranchAffectedFixed in
4.0= 4.0no fix published

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.

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

  • CVE-2026-4480 Red Hat Product Security4,182 products fixed · 30 known affected

    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

  • RHSA-2026:28132 Red Hat Product Security145 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2026:28053 Red Hat Product Security393 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2026:28054 Red Hat Product Security393 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2026:28055 Red Hat Product Security467 products fixed

    Red Hat Security Advisory: samba security update

  • RHSA-2026:28056 Red Hat Product Security298 products fixed

    Red Hat Security Advisory: samba security update

6 more advisories

Full record on NVD

Fix

  1. Update Samba to 4.2.1
  2. 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
  3. 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

Detection

read 2026-12-03 04:56 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2026-4480 actively exploited?

Active exploitation of CVE-2026-4480 has not been confirmed. Its EPSS score was 28.7% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-4480?

CVE-2026-4480 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record