CVE-2026-4408
Published:May 28, 2026
Updated:June 13, 2026
A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters. This vulnerability allows an attacker to achieve remote command execution on the affected system. This issue primarily affects non-standard configurations where the "check password script" is used with %u and the samba-dcerpcd service is started as a system service.
Affected Packages
https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.24.0 <samba-4.24.3Fix Suggestion:
Update to version samba-4.24.3https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.22.0 <samba-4.22.10Fix Suggestion:
Update to version samba-4.22.10https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.23.0 <samba-4.23.8Fix Suggestion:
Update to version samba-4.23.8Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
1.02