Red Hat Enterprise Linux 10
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:4.23.5-109.el10_2
Fixed in 0:4.21.3-114.el10_0.1
Fixed in 0:4.10.16-26.el7_9.1
Fixed in 0:4.10.16-26.el7_9.1
Fixed in 0:4.19.4-16.el8_10
Fixed in 0:4.19.4-16.el8_10
Fixed in 0:4.13.3-12.el8_4.1
Fixed in 0:4.13.3-12.el8_4.1
Fixed in 0:4.15.5-16.el8_6.1
Fixed in 0:4.15.5-16.el8_6.1
Fixed in 0:4.17.5-7.el8_8.1
Fixed in 0:4.17.5-7.el8_8.1
Fixed in 0:4.23.5-10.el9_8
Fixed in 0:4.23.5-10.el9_8
Fixed in 0:4.17.5-105.el9_2.5
Fixed in 0:4.19.4-105.el9_4.4
Fixed in 0:4.21.3-14.el9_6.1
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:4.23.5-109.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:4.21.3-114.el10_0.1 or later.
Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 0:4.10.16-26.el7_9.1 or later.
Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 0:4.10.16-26.el7_9.1 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:4.19.4-16.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:4.19.4-16.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 0:4.13.3-12.el8_4.1 or later.
Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 0:4.13.3-12.el8_4.1 or later.
Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:4.15.5-16.el8_6.1 or later.
Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:4.15.5-16.el8_6.1 or later.
Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:4.17.5-7.el8_8.1 or later.
Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:4.17.5-7.el8_8.1 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:4.23.5-10.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:4.23.5-10.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:4.17.5-105.el9_2.5 or later.
Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:4.19.4-105.el9_4.4 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:4.21.3-14.el9_6.1 or later.
Workaround
Remove ```"%J"``` from the "print command" in ```smb.conf``` entry.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:22644
- Vendor advisory access.redhat.com/errata/RHSA-2026:22963
- Vendor advisory access.redhat.com/errata/RHSA-2026:25049
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:25979
- Vendor advisory access.redhat.com/errata/RHSA-2026:28053
- Vendor advisory access.redhat.com/errata/RHSA-2026:28054
- Vendor advisory access.redhat.com/errata/RHSA-2026:28055
- Vendor advisory access.redhat.com/errata/RHSA-2026:28056
Timeline
Days relative to CVE publicationFirst public PoC 9.9 days after publication; not in CISA KEV. First PoC: TheCyberGeek/CVE-2026-4480-PoC (created 5 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.12 PoCs · 1 informational
PoCs 12
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| TheCyberGeek/CVE-2026-4480-PoC | 5 Jun 2026 +9.9 d | 23 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| robinxiang/CVE-2026-4480 | 7 Jun 2026 +12 d | 1 | PoC via PoC Index |
| 0xBlackash/CVE-2026-4480 | 7 Jun 2026 +12 d | 3 | PoC |
| 0xredash/CVE-2026-4480 | 7 Jun 2026 +12 d | 3 | PoC |
| ashrafzaryouh/CVE-2026-4480 | 7 Jun 2026 +12 d | 3 | PoC |
| CarlosEduardoPM/CVE-2026-4480-POC | 8 Jun 2026 +13 d | 2 | PoC |
| saitoken241/CVE-2026-4480-POC | 8 Jun 2026 +13 d | 2 | PoC |
| Vusal777/CVE-2026-4480-exploit-poc | 16 Jun 2026 +21 d | 0 | PoC |
| ClearLotus-git/CVE-2026-4480-PoC | 20 Jun 2026 +25 d | 0 | PoC |
| exploitnotes/security-research | 9 Jul 2026 +44 d | 0 | PoC via PoC Index |
| SafeBreach-Labs/ForgottenButNotGone | 3 Aug 2026 +69 d | 12 | PoC via PoC Index |
| AlanNewberry/CVE-2026-4480-samba-print-command-injection-rce | 3 Oct 2026 +130 d | 2 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| timgad794/Abducted-HTB-Writeup | 2 Oct 2026 +129 d | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Samba Printing Subsystem - Remote Code Execution | 17 Jun 2026 | 14 Nov 2026 |