CVE-2026-4408

published 28 May 2026 · updated 16 Nov 2026

Samba: remote code execution in samr

9.5CriticalCVSS 9.0EPSS 47%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 47%. Fixed in Samba 4.21.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatOpenShift Container Platform
SambaSamba>=4.1.0 <4.21.04.21.0
redhatenterprise_linux=9.0, =7.0, =6.0
redhatopenshift_container_platform=4.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Samba, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-4408 severity on Zeptric[![CVE-2026-4408](https://zeptric.io/badge/cve/CVE-2026-4408.svg)](https://zeptric.io/cve/CVE-2026-4408)