Security advisory · Server software
CVE-2026-4408: a vulnerability in Samba
CVE-2026-4408: Samba remote command execution via unescaped %u in "check password script" when samba-dcerpcd runs as a system service. Prioritise any internet-facing service first. The affected versions, the fix and the CVSS score below come straight from the CVE record, not our interpretation.
- CVE ID
- CVE-2026-4408
- Published
- May 28, 2026
- CVSS
- 9.8 (Critical), CVSS 3.1
- Affected
- from 4.1.0 up to the fixed release
- Fixed in
- 4.21.0
- Assigned by
- Red Hat
What is CVE-2026-4408?
A flaw in Samba allows remote command execution when the optional "check password script" feature is configured using the %u substitution. If %u is present, the client-supplied username is inserted into the shell command without proper escaping of shell meta-characters. An attacker who can supply a crafted username can inject shell metacharacters and execute arbitrary commands. The issue affects Samba versions from 4.1.0 up to the fixed release and primarily impacts non-standard configurations that enable the "check password script" with %u and run the samba-dcerpcd service as a system service. The attack vector is remote network access to the Samba service; no user interaction is required. Successful exploitation results in confidentiality, integrity, and availability loss by allowing arbitrary command execution as the service account. The flaw is fixed in release 4.21.0; operators should upgrade to 4.21.0 to remediate the vulnerability.
Am I affected?
Affected: Samba from 4.1.0 up to the fixed release. Fixed in 4.21.0.
How do I fix it?
Install your distribution's security update for this package, then restart the affected service so the running process picks up the fix.
# Debian / Ubuntu
sudo apt update && sudo apt upgrade
# RHEL / AlmaLinux / Rocky Linux
sudo dnf upgrade --refresh
How HostCrust helps you see it
Patch Proof checks the packages on each server against your distribution's own security data, per CVE, so once your distribution publishes its fix it shows this package as open until the update is installed — and because it is a running service, the fix isn't done until you restart it.
How we checked this: Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — was taken from the CVE's NVD record and the vendor or CNA advisory linked under Sources, and checked on December 2, 2026. HostCrust did not independently reproduce the vulnerability. Anything we didn't run ourselves comes from the official documentation listed under Sources.
Check which CVEs are really open on your server
HostCrust Patch Proof compares every installed package with your distribution's own security data. It counts fixes your distro backported and checks the kernel that is actually running, not just the one on disk. Read-only, no root, free.
FAQ
How severe is CVE-2026-4408?
The NVD record lists a CVSS base score of 9.8 (Critical) (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Severity scores can be revised as a CVE is analysed, so check the NVD record and the vendor advisory under Sources for the current figure.
How do I fix it?
Install your distribution's or vendor's fixed release for Samba and restart the affected service (or reboot, for a kernel fix). The commands are in the section above.
Where do these facts come from?
Every fact on this page — the CVE id, the affected and fixed versions, the CVSS score and the remediation — is copied from the CVE's NVD record and the vendor or CNA advisory linked under Sources. HostCrust reformats the official facts; it does not add its own.