Samba: samba: remote code execution in printing subsystem via unescaped job description
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 29%. Fixed in Samba 4.2.1.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Red Hat | Enterprise Linux | ||
| Red Hat | OpenShift Container Platform | ||
| Samba | Samba | >=4.1.0 <4.2.1 | 4.2.1 |
| redhat | enterprise_linux | =9.0, =8.0, =7.0, =10.0 | |
| redhat | openshift_container_platform | =4.0 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Samba, strongest first
Embed
A live severity badge for an advisory, README or ticket