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.
Published: 2026-05-28
Score: 9 Critical
EPSS: 1.9% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Samba allows a remote attacker to execute arbitrary commands by triggering shell injection through the misconfigured "check password script" feature, which processes the client-controlled username (%u) without safe escaping, resulting in remote code execution (CWE‑78).

Affected Systems

Affected systems include Red Hat Enterprise Linux releases 6 through 9 and Red Hat OpenShift Container Platform 4 where Samba is deployed. Vulnerable configurations involve using the "check password script" with the %u placeholder and running the samba‑dcerpcd service as a system service.

Risk and Exploitability

The CVSS score of 9 indicates a severe risk; the lack of an EPSS score means the exploitation probability is currently unknown, but because the flaw permits command injection remotely over Samba, the potential for widespread compromise is high. The vulnerability is not listed in the CISA KEV catalog, yet based on the description, it is inferred that the attack vector involves remote network access to the Samba service with a misconfigured check‑password script, making privileged or service‑level exploitation feasible.

Generated by OpenCVE AI on May 28, 2026 at 10:20 UTC.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Update to the latest Samba version that removes the vulnerability or apply the vendor's patch as soon as it becomes available.
  • Reconfigure the Samba "check password script" to eliminate the use of the %u substitution, or disable the feature entirely.
  • Apply the official Red Hat workaround provided for this issue as a temporary mitigation.
  • Ensure the samba‑dcerpcd service runs with the least privileges possible, and if feasible, disable the service on hosts where it is not required.

Generated by OpenCVE AI on May 28, 2026 at 10:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6297-1 samba security update
Ubuntu USN Ubuntu USN USN-8306-1 Samba vulnerabilities
History

Mon, 15 Jun 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_eus:9.6::appstream
cpe:/a:redhat:rhel_eus:9.6::crb
cpe:/a:redhat:rhel_eus:9.6::resilientstorage
cpe:/o:redhat:rhel_eus:9.6::baseos
Vendors & Products Redhat rhel Eus
References

Wed, 10 Jun 2026 16:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/a:redhat:enterprise_linux:9::crb
cpe:/a:redhat:enterprise_linux:9::resilientstorage
cpe:/o:redhat:enterprise_linux:9::baseos
References

Mon, 08 Jun 2026 15:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Thu, 04 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References

Wed, 03 Jun 2026 11:15:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:8::crb
cpe:/o:redhat:enterprise_linux:8::baseos
References

Sat, 30 May 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Samba
Samba samba
Vendors & Products Redhat openshift Container Platform
Samba
Samba samba

Fri, 29 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 28 May 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 28 May 2026 08:45:00 +0000

Type Values Removed Values Added
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.
Title Samba: remote code execution in samr
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-78
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift Openshift Container Platform Rhel Eus
Samba Samba
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-06-15T20:41:31.631Z

Reserved: 2026-03-18T21:40:14.142Z

Link: CVE-2026-4408

cve-icon Vulnrichment

Updated: 2026-05-29T15:16:46.463Z

cve-icon NVD

Status : Modified

Published: 2026-05-28T09:16:47.643

Modified: 2026-06-17T10:56:32.163

Link: CVE-2026-4408

cve-icon Redhat

Severity : Important

Publid Date: 2026-05-26T00:00:00Z

Links: CVE-2026-4408 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-30T21:19:19Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')