cve.bz

CVE-2026-4480 OS Command Injection

9.0 criticalEPSS 29%Fix available

Critical (9.0). EPSS 29% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
29% (unchanged from 29% a week ago; 14% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:4.23.5-109.el10_2
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:4.21.3-114.el10_0.1
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:4.10.16-26.el7_9.1
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.19.4-16.el8_10
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:4.13.3-12.el8_4.1
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On: fixed in 0:4.13.3-12.el8_4.1
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:4.15.5-16.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On: fixed in 0:4.15.5-16.el8_6.1
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine: fixed package versions per release
  • Vendor advisory: https://bugzilla.samba.org/show_bug.cgi?id=16033

Ask an AI about this CVE

Show the promptExplain CVE-2026-4480 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4480?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4480?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-4480 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:4.23.5-109.el10_2
Red Hat Enterprise Linux 10.0 Extended Update Support0:4.21.3-114.el10_0.1
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:4.10.16-26.el7_9.1
Red Hat Enterprise Linux 80:4.19.4-16.el8_10
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:4.13.3-12.el8_4.1
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On0:4.13.3-12.el8_4.1
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:4.15.5-16.el8_6.1
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:4.15.5-16.el8_6.1
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:4.17.5-7.el8_8.1
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:4.17.5-7.el8_8.1
Red Hat Enterprise Linux 90:4.23.5-10.el9_8
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:4.17.5-105.el9_2.5
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:4.19.4-105.el9_4.4
Red Hat Enterprise Linux 9.6 Extended Update Support0:4.21.3-14.el9_6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11samba2:4.13.13+dfsg-1~deb11u8DLA-4692-1
Debian12samba2:4.17.12+dfsg-0+deb12u4DEBIAN-CVE-2026-4480 DSA-6297-1
Debian13samba2:4.22.8+dfsg-0+deb13u2DEBIAN-CVE-2026-4480 DSA-6297-1
Debian14samba2:4.24.3+dfsg-1DEBIAN-CVE-2026-4480
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.12UBUNTU-CVE-2026-4480
Ubuntu24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.6UBUNTU-CVE-2026-4480
Ubuntu25.10samba2:4.22.3+dfsg-4ubuntu2.4UBUNTU-CVE-2026-4480
Ubuntu26.04:LTSsamba2:4.23.6+dfsg-1ubuntu2.1UBUNTU-CVE-2026-4480
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSsambano fix listedUBUNTU-CVE-2026-4480
UbuntuPro:20.04:LTSsamba2:4.15.13+dfsg-0ubuntu0.20.04.8+esm2UBUNTU-CVE-2026-4480 USN-8306-2
Red Hatenterprise_linux:7::serverctdb, ctdb-tests, samba-debuginfo0:4.10.16-26.el7_9.1RHSA-2026:28132
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:8::baseosctdb, samba, libnetapi and 50 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, libnetapi-devel and 27 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:9::appstreamsamba-client, samba-winexe, ctdb-debuginfo and 32 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::baseossamba, libldb, ldb-tools and 46 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::crbsamba-pidl, samba-test, samba-devel and 34 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::resilientstoragectdb, ctdb-debuginfo, samba-debuginfo and 26 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:10.2samba, libldb, ldb-tools and 62 more0:4.23.5-109.el10_2RHSA-2026:22963
Red Hatenterprise_linux_eus:10.0samba, libldb, ldb-tools and 62 more0:4.21.3-114.el10_0.1RHSA-2026:28055
Red Hatrhel_aus:8.4::baseos, rhel_eus_long_life:8.4::baseosctdb, samba, ctdb-tests and 40 more0:4.13.3-12.el8_4.1RHSA-2026:28058
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.15.5-16.el8_6.1RHSA-2026:28057
14 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23129-1 SUSE-SU-2026:23152-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.9+git.506.22c03ce0781-160000.1.1SUSE-SU-2026:22080-1
SUSELinux Micro 6.2samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23003-1
SUSELinux Micro 6.2samba4.22.9+git.506.22c03ce0781-160000.1.1SUSE-SU-2026:22045-1
openSUSELeap 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1openSUSE-SU-2026:21540-1
openSUSELeap 16.0samba4.22.9+git.506.22c03ce0781-160000.1.1openSUSE-SU-2026:20905-1
openSUSETumbleweedsamba4.23.8+git.477.f78166bceed-1.1openSUSE-SU-2026:10884-1
AlmaLinux8ctdb, samba, libnetapi and 31 more4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux9samba, libldb, ldb-tools and 34 more4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux10samba-pidl, samba-common, samba-gpupdate and 1 more4.23.5-109.el10_2ALSA-2026:22963
Rocky Linux8samba0:4.19.4-16.el8_10RLSA-2026:22644
Rocky Linux9samba0:4.23.5-10.el9_8RLSA-2026:25049
Rocky Linux10samba0:4.23.5-109.el10_2RLSA-2026:22963
Alpinev3.23samba4.22.10-r0ALPINE-CVE-2026-4480
Alpinev3.24samba4.23.8-r0ALPINE-CVE-2026-4480
Azure Linux3sambano fix listedAZL-88880

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The issue affects the Samba printing subsystem. Red Hat has classified this issue as Important severity rather than Critical.

Print servers configured with ```"printing = cups"``` or ```"printing = iprint"```, and print servers that do not have the ```"%J"``` substitution character in the "print command" setting are not affected.

By default, Red Hat Enterprise Linux ships with Samba configured to use CUPS-based printing ```printing = cups```. Hence, although the vulnerable code is present, it is not exploitable in default RHEL configurations.

Because exploitation depends on non-default Samba printing configurations and requires use of the %J substitution parameter within print command, the attack complexity is considered High (AC:H), reducing the likelihood of exploitation in standard deployments.

Red Hat's mitigation

Remove ```"%J"``` from the "print command" in ```smb.conf``` entry.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10samba-0:4.23.5-109.el10_2Fixed 2026-06-03RHSA-2026:22963
Red Hat Enterprise Linux 10.0 Extended Update Supportsamba-0:4.21.3-114.el10_0.1Fixed 2026-06-23RHSA-2026:28055
Red Hat Enterprise Linux 7 Extended Lifecycle Supportsamba-0:4.10.16-26.el7_9.1Fixed 2026-06-23RHSA-2026:28132
Red Hat Enterprise Linux 8samba-0:4.19.4-16.el8_10Fixed 2026-06-03RHSA-2026:22644
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportsamba-0:4.13.3-12.el8_4.1Fixed 2026-06-23RHSA-2026:28058
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onsamba-0:4.13.3-12.el8_4.1Fixed 2026-06-23RHSA-2026:28058
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportsamba-0:4.15.5-16.el8_6.1Fixed 2026-06-23RHSA-2026:28057
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onsamba-0:4.15.5-16.el8_6.1Fixed 2026-06-23RHSA-2026:28057
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicesamba-0:4.17.5-7.el8_8.1Fixed 2026-06-23RHSA-2026:28056
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionssamba-0:4.17.5-7.el8_8.1Fixed 2026-06-23RHSA-2026:28056
Red Hat Enterprise Linux 9samba-0:4.23.5-10.el9_8Fixed 2026-06-10RHSA-2026:25049
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionssamba-0:4.17.5-105.el9_2.5Fixed 2026-06-23RHSA-2026:28054
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionssamba-0:4.19.4-105.el9_4.4Fixed 2026-06-23RHSA-2026:28053
Red Hat Enterprise Linux 9.6 Extended Update Supportsamba-0:4.21.3-14.el9_6.1Fixed 2026-06-15RHSA-2026:25979
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-4480.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

2 more

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON