CVE-2026-4408: Samba: remote code execution in samr
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.
Security readout for executives and security teams
Plain-English summary
CVE-2026-4408 is a critical Samba remote code execution issue, but exposure depends on a specific non-standard configuration. Systems are at risk when Samba uses the check password script feature with %u, allowing a client-controlled username to reach a shell without proper escaping.
Executive priority
Treat this as urgent for environments running Samba in identity or file-sharing roles, especially domain controllers. The practical priority is configuration-driven: quickly identify whether the risky feature is enabled, then apply vendor guidance and updates to confirmed exposures.
Technical view
The flaw is CWE-78 command injection in Samba samr handling. A remote unauthenticated attacker may trigger command execution where check password script includes %u and samba-dcerpcd runs as a system service. CVSS is 9.0 with high confidentiality, integrity, and availability impact.
Likely exposure
Most likely exposed assets are Samba file servers or classic domain controllers on listed Red Hat platforms using check password script with %u. The bundle lists affected RHEL 7 ELS, 8, 9, 10 variants and OpenShift Container Platform 4.19 to 4.21 rhcos.
Exploitation context
The source bundle marks KEV as false and provides no evidence of active exploitation. Exploitation is network-reachable and unauthenticated in the CVSS vector, but attack complexity is high because the vulnerable configuration is specific and non-default.
Researcher notes
Evidence supports a configuration-dependent RCE, not broad exploitation of all Samba installations. Avoid assuming exposure from package presence alone. Validate the %u substitution path, service context, and affected Red Hat product stream before assigning incident-level urgency.
Mitigation direction
Review Red Hat and Samba advisories for supported updates or configuration guidance.
Remove %u from check password script usage unless vendor guidance explicitly permits it.
Disable unused check password script configurations on Samba servers.
Prioritize updates for internet-facing or domain-controller Samba systems.
Restrict network access to Samba services where business requirements allow.
Validation and detection
Inventory Samba servers and classic domain controllers across listed Red Hat platforms.
Check smb.conf for check password script entries using %u.
Confirm whether samba-dcerpcd runs as a system service on candidate hosts.
Map installed samba or rhcos versions to referenced Red Hat advisories.
Review authentication-related logs for suspicious username-driven failures or script errors.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
7Timeline events
2ADP providers
19Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.