Original description
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 software
- Samba ≥ 4.1.0 < 4.21.0 Fixed in: 4.21.0 exact match
Details
- Published
- 2026-05-28
- Last modified
- 2026-11-04
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-78
- EPSS (30-day exploit probability)
- 46.93% (percentile 99)
References
- cve.org/CVE-2026-4408
- nvd.nist.gov/vuln/detail/CVE-2026-4408
- access.redhat.com/errata/RHSA-2026:22644
- access.redhat.com/errata/RHSA-2026:22963
- access.redhat.com/errata/RHSA-2026:25049
- access.redhat.com/errata/RHSA-2026:25979
- access.redhat.com/errata/RHSA-2026:28053
- access.redhat.com/errata/RHSA-2026:28054
- access.redhat.com/errata/RHSA-2026:28055
- access.redhat.com/errata/RHSA-2026:28056
- access.redhat.com/errata/RHSA-2026:28057
- access.redhat.com/errata/RHSA-2026:28058
- access.redhat.com/errata/RHSA-2026:28132
- access.redhat.com/errata/RHSA-2026:29799
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.