RCE in Samba

CVE-2026-4408

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.025 (83.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-4408?
CVE-2026-4408 is a critical-severity vulnerability in Samba, classified under OS Command Injection. CVSS score: 9.0/10. Published 2026-05-28.
How severe is CVE-2026-4408?
Critical severity. CVSS v3 base score is 9.0 out of 10.
Is CVE-2026-4408 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.