Skip to main content

Samba CVE-2026-4480

| EUVDEUVD-2026-31828 CRITICAL
OS Command Injection (CWE-78)
2026-05-26 redhat GHSA-hwwh-4hhw-h9jf
9.0
CVSS 3.1 · Vendor: redhat
Share

Severity by source

Vendor (redhat) PRIMARY
9.0 CRITICAL
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
SUSE
8.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Red Hat
8.5 HIGH
qualitative

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Generated
Jun 08, 2026 - 08:36 vuln.today
Severity Changed
Jun 03, 2026 - 09:22 NVD
HIGH CRITICAL
CVSS changed
Jun 03, 2026 - 09:22 NVD
8.5 (HIGH) 9.0 (CRITICAL)
CVE Published
May 26, 2026 - 13:56 nvd
CRITICAL 9.0

DescriptionCVE.org

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.

AnalysisAI

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via crafted print job descriptions. The flaw stems from unescaped expansion of the client-controlled '%J' substitution token into the configured 'print command', enabling shell metacharacter injection. No public exploit has been identified at time of analysis, and EPSS scores exploitation probability at only 0.08%, but CVSS 9.0 with scope change reflects high potential impact on any Samba host exposing print services.

Technical ContextAI

Samba implements SMB/CIFS file and print sharing on Unix-like systems, including a printing subsystem that hands jobs off to system spoolers via an administrator-defined 'print command' (typically lpr or a custom script). Within that command template, Samba expands several '%' tokens - '%J' is replaced with the client-supplied job description string. The bug is a classic CWE-78 (OS Command Injection): Samba interpolates this attacker-controlled string into a shell command line without quoting or filtering shell metacharacters such as ;, |, &, $(), and backticks. When the resulting command is passed to /bin/sh, the injected fragment executes with the privileges of the smbd worker process. The affected CPE set is limited to Red Hat Enterprise Linux 6-10 and OpenShift Container Platform 4 entries in the provided data, but the root cause is in upstream Samba and tracked in Samba Bugzilla #16033, so any distribution shipping a vulnerable Samba build with printing enabled is structurally exposed.

RemediationAI

Apply the vendor-released patches for your distribution as the primary fix: Red Hat customers should install updates per RHSA-2026:22644 and RHSA-2026:22963, SUSE customers via SUSE-SU-2026:2071 through 2108, and Ubuntu users via USN-8306-1; exact fixed package versions are not enumerated in the supplied data and should be read from each advisory before deployment. If patching cannot be done immediately, disable the Samba printing subsystem by setting 'load printers = no', 'printing = bsd', and 'printcap name = /dev/null' in smb.conf and removing or commenting out any custom 'print command' lines that reference %J, which removes the vulnerable code path at the cost of losing SMB print sharing for clients. As a network-layer compensating control, restrict TCP/445 and TCP/139 to trusted management ranges via host or perimeter firewalls - this blocks remote exploitation but breaks SMB access for any client not in the allowlist. Avoid the partial workaround of sanitizing %J in a wrapper script, because correctly escaping all shell metacharacters in a custom 'print command' is error-prone and not a substitute for the upstream fix.

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-14544 CRITICAL
9.8 Jul 03

Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter

CVE-2026-28369 CRITICAL
9.1 Mar 27

HTTP request smuggling in Undertow (the embedded web server underpinning JBoss EAP, Red Hat Data Grid, and Apache Camel

CVE-2026-28368 CRITICAL
9.1 Mar 27

HTTP request smuggling in Red Hat Undertow allows remote unauthenticated attackers to bypass front-end security controls

CVE-2026-33845 CRITICAL
9.1 Apr 30

Out-of-bounds read in the GnuTLS DTLS handshake reassembly logic lets remote unauthenticated attackers trigger an intege

CVE-2026-28367 CRITICAL
9.1 Mar 27

HTTP request smuggling in Undertow allows remote unauthenticated attackers to send `\r\r\r` as a header block terminator

CVE-2026-16526 HIGH
8.8 Jul 30

Local privilege escalation in Performance Co-Pilot (PCP) on Red Hat Enterprise Linux 6 through 10 and OpenShift Containe

CVE-2026-11610 HIGH
8.8 Jul 07

Denial of service in Red Hat / 389 Directory Server (389-ds-base, versions since ~1.3.2/2013) allows an authenticated LD

CVE-2026-14474 HIGH
8.8 Jul 07

Local-to-domain-wide root privilege escalation in SSSD's LDAP sudo provider allows an authenticated LDAP directory user

CVE-2026-52720 HIGH
8.8 Jun 15

Heap buffer overflow in GStreamer's librfb (RFB/VNC client) allows a malicious VNC server to corrupt heap memory on a co

CVE-2026-59851 HIGH
8.8 Jul 21

Privilege escalation via authentication bypass in libssh affects servers that enable GSSAPIKeyExchange, where the gssapi

CVE-2026-5674 HIGH
8.8 Jul 16

Sandbox escape in PipeWire's PulseAudio compatibility layer lets a low-privileged process inside a confined environment

Vendor StatusVendor

SUSE

Severity: High
Product Status
Image SLES12-SP5-Azure-BYOS Image SLES12-SP5-Azure-Standard-On-Demand Image SLES12-SP5-EC2-BYOS Image SLES12-SP5-EC2-ECS-On-Demand Image SLES12-SP5-EC2-On-Demand Image SLES12-SP5-GCE-BYOS Image SLES12-SP5-GCE-On-Demand Affected
Image SLES15-SP7-HPC-Azure Affected
SUSE Enterprise Storage 7.1 Fixed
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 12 SP5 Fixed

Share

CVE-2026-4480 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy