CVE-2026-4480: Samba: samba: remote code execution in printing subsystem via unescaped job description

Published Mar 27, 2026
·
Updated

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.

Other sources

Samba: Unauthenticated Remote Code Execution in Samba printing subsystem

Red Hat

Affected Software

8 affected componentsFixes available
Samba Samba
debian/samba<=2:4.13.13+dfsg-1~deb11u6, <=2:4.13.13+dfsg-1~deb11u7, <=2:4.17.12+dfsg-0+deb12u3, <=2:4.22.8+dfsg-0+deb13u1, <=2:4.24.2+dfsg-1
2:4.17.12+dfsg-0+deb12u42:4.22.8+dfsg-0+deb13u22:4.24.3+dfsg-1
redhat OpenShift Container Platform=4.0
Samba Samba>=4.1.0<4.2.1
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.12+dfsg-0+deb12u4Fixed in 2:4.22.8+dfsg-0+deb13u2Fixed in 2:4.24.3+dfsg-1

Event History

Mar 27, 2026
Data Sourced
via Red Hat·01:38 PM
DescriptionSeverityAffected Software
May 26, 2026
CVE Published
via MITRE·01:56 PM
Data Sourced
via MITRE·01:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Ubuntu·04:09 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·04:10 PM
Description
May 27, 2026
Data Sourced
via Debian·04:11 PM
DescriptionAffected Software
Aug 27, 58386
Event
via NVD·09:55 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4480?

The severity of CVE-2026-4480 is rated as high with a score of 8.5.

2

How do I fix CVE-2026-4480?

To fix CVE-2026-4480, upgrade Samba to the latest version that includes the patch for this vulnerability.

3

What kind of vulnerability is CVE-2026-4480?

CVE-2026-4480 is an OS Command Injection vulnerability in the Samba printing subsystem.

4

Who is affected by CVE-2026-4480?

Users of Samba who have configured the 'print command' setting are affected by CVE-2026-4480.

5

Can CVE-2026-4480 lead to remote code execution?

Yes, CVE-2026-4480 can allow a remote attacker to execute arbitrary code due to unescaped shell meta characters in the job description.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203