SardinhaNews

CVE-2026-4408

CriticalBDU · public exploit

Published: 05/28/2026 · Modified: 11/04/2026

CVSS 3.1ⓘ9.8
EPSSⓘ46.9%
VPR (Tenable)7.6

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.

Exploitation

No confirmed-exploitation catalog lists this CVE so far.

Requires: network access · Does not require: authentication, user interaction, special target conditions

How it is exploited

Exploitation method

  • The attacker sends a remote authentication request to the Samba server configured with the 'check password script' feature.
  • The client-controlled username is passed to the script without proper escaping of shell meta-characters, due to the use of the %u substitution character.
  • The script is executed by the samba-dcerpcd service with the meta-characters interpreted by the shell.
  • The attacker achieves arbitrary command execution on the affected system.

Am I affected? (applicability)

  • The Samba server or classic domain controller is configured with the 'check password script' feature.
  • The check password script uses the %u substitution character.
  • The samba-dcerpcd service is started as a system service.
  • The Samba version in use is earlier than the fixed version indicated (0:4.23.5-109.el10_2, 0:4.21.3-114.el10_0.1, 0:4.10.16-26.el7_9.1, 0:4.19.4-16.el8_10).

Does not require: authentication, user interaction, special target conditions.

Mitigation and detection

✓ Fix available in version 0:4.23.5-109.el10_2; 0:4.21.3-114.el10_0.1; 0:4.10.16-26.el7_9.1; 0:4.19.4-16.el8_10

  • Update Samba to the fixed version: 0:4.23.5-109.el10_2, 0:4.21.3-114.el10_0.1, 0:4.10.16-26.el7_9.1, or 0:4.19.4-16.el8_10.
  • Review the 'check password script' configuration and avoid using the %u substitution character if possible.
  • Restrict network access to affected Samba services to trusted clients only.
  • Monitor samba-dcerpcd and check password script logs for suspicious activity.

Impact if exploited

Remote command execution on the affected system, allowing the attacker to fully compromise the Samba server or domain controller.

Confidentiality: highIntegrity: highAvailability: high

References and technical detail

The “Requires/Does not require” line and the confidentiality, integrity and availability impact come from the official CVSS vector. Method, applicability and mitigation are an automatic summary of the NVD description, public exploitation sources (Metasploit, Nuclei, Exploit-DB) and the CVE record via CIRCL (advisories and fixed version), linked under “References and technical detail”. Community reports come from CIRCL sightings and are unverified.

Exploitation probability (EPSS) over time

07/13/202609/30/202610/26/202611/11/2026

Affected products

  • redhat · openshift_container_platform
  • samba · samba
  • redhat · enterprise_linux

Weakness type (CWE)

Timeline on SardinhaNews

References