cbcvebase.
CVE-2026-4480
published 2026-05-26

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"…

PriorityP184critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
12.80%
95.8th percentile
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.

Affected

8 ranges
VendorProductVersion rangeFixed in
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
redhatopenshift_container_platform
sambasamba
sambasamba>= 4.1.0 < 4.2.14.2.1
ubuntusamba

Detection & IOCsextracted from sources · hover to see the quote

urlhttps://github.com/Vusal777/CVE-2026-4480-exploit-poc
command%J
sigma
compare_versions(version, '= 4.23.0', '= 4.24.0', '< 4.24.3')
yara
regex: Samba ([0-9]+\.[0-9]+\.[0-9]+[a-z]*)
  • Monitor Samba print job submissions containing unescaped shell metacharacters in the job description field, particularly when the smb.conf 'print command' setting includes the '%J' substitution parameter.
  • Scan Samba banners on port 445 to identify vulnerable versions (4.23.0, 4.24.0–4.24.2) using SMB info-mode enumeration; match banner string 'Samba' and extract version.
  • Reference upstream Samba bug tracker entry 16033 for technical details and patch diffs useful for building detection signatures.
  • ·Red Hat assesses attack complexity as High (AC:H) and Privileges Required as Low (PR:L) for typical RHEL deployments, diverging from the NVD CVSS 9.8 score, because exploitation depends on non-default configurations and authenticated access is typically required.
  • ·The Nuclei template targets Samba versions 4.23.0, 4.24.0, and < 4.24.3 as vulnerable; fixed versions are 4.22.10, 4.23.8, and 4.24.3 or later.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vendor_redhat8.5HIGH
vendor_ubuntu8.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.