CVE-2026-4480: Samba: samba: remote code execution in printing subsystem via unescaped job 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.
Security readout for executives and security teams
Plain-English summary
A remote attacker may take control of an affected Samba server by submitting a malicious print-job description. The flaw can expose data, alter systems, or interrupt services without authentication or user interaction, but exploitation requires a vulnerable printing configuration and is rated high complexity.
Executive priority
Treat as an urgent remediation program, prioritizing externally reachable or broadly accessible print services. The potential impact is full confidentiality, integrity, and availability compromise. Require rapid exposure confirmation and vendor-update deployment, while recognizing that vulnerable configuration conditions and high attack complexity affect immediate likelihood.
Technical view
Samba inserts the client-controlled print-job description into a configured print command through the %J substitution without escaping shell metacharacters. This CWE-78 command-injection flaw can execute commands remotely with the printing process's privileges. CVSS 3.1 is 9.0: network-accessible, unauthenticated, no user interaction, high complexity, and changed scope.
Likely exposure
Highest risk exists where affected Red Hat Samba packages provide reachable printing services and print command uses %J. The bundle identifies affected RHEL 7–10 variants and OpenShift Container Platform 4; RHEL 6 status is unknown. Systems without Samba printing or the relevant configuration are less likely exposed, but require verification.
Exploitation context
The bundle reports no CISA KEV listing and provides no evidence of active exploitation or a public exploit. That does not establish that exploitation is absent. Exploitation is remote and unauthenticated, but the CVSS assessment rates attack complexity high, suggesting additional conditions must be satisfied.
Researcher notes
The affected matrix contains duplicate RHEL entries and does not establish the complete upstream Samba version range. Listed package versions should not be assumed to be fixed-version thresholds without checking the corresponding advisory. Determine service reachability, printing enablement, print command configuration, process privileges, and product-specific erratum applicability. No exploit reproduction should be necessary for exposure validation.
Mitigation direction
Identify affected Samba installations and prioritize servers exposing printing services to untrusted networks.
Apply the applicable Red Hat security advisory updates following vendor guidance and normal change controls.
Until updated, restrict untrusted network access to Samba printing services where operationally feasible.
Consult Red Hat or Samba guidance before changing print command configuration or disabling printing.
Validation and detection
Compare installed Samba packages and Red Hat product streams with the affected-product matrix.
Review Samba printing configuration for print command usage involving the %J substitution.
Confirm whether Samba printing is reachable from untrusted or broadly accessible network segments.
After remediation, verify the applicable Red Hat advisory update is installed and printing remains functional.
Track RHEL 6 systems separately because the supplied bundle lists their status as unknown.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
7Timeline events
2ADP providers
16Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.