Command injection in Samba - CVE-2026-4408
Published: May 27, 2026
Samba
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to command injection in the Samba DCE/RPC SAMR server when invoking a check password script that uses the %u substitution character. A remote attacker can send crafted input that reaches the check password script to execute arbitrary code.
Exploitation requires samba-dcerpcd to be started as a system service on Samba file servers or classic non-AD domain controllers, and requires a configured "check password script" that uses the %u substitution character.