CRITICAL🇵🇱 Wersja polska

CVE-2026-4408

CVSS 9.0v3.1pub. 2026-05-28upd. 2026-09-03

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.

🤖 AI Analysis
How it works

The vulnerability results from improper escaping of shell meta-characters during substitution of the client-controlled username using the %u specifier in the 'check password script' configuration option. An attacker can craft a malicious username containing shell meta-characters, which will be passed directly to the executed script without sanitization. The exploit is effective only in non-standard configurations where the 'check password script' option with %u substitution is active and the samba-dcerpcd service is running as a system service.

Impact

A remote, unauthenticated attacker can gain the ability to execute arbitrary system commands on the vulnerable server, leading to breach of confidentiality, integrity, and availability of the system — potentially resulting in complete server compromise.

Mitigation & patch

Apply patches available from the vendor according to the references (Samba Bugzilla #16034, Red Hat Security Advisory CVE-2026-4408). Until updates are applied, it is recommended to remove the %u substitution from the 'check password script' configuration or disable this feature if not required, as well as restrict or stop the samba-dcerpcd service as a system service where not essential.

Who is affected

Samba configured as a file server or classic domain controller with the active 'check password script' option containing %u substitution and the samba-dcerpcd service running as a system service. Specific product versions are indicated in the vendor's references.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Red Hat Enterprise Linux

    OS
    Redhat
    6.07.09.0
  • Red Hat OpenShift Container Platform

    APP
    Redhat
    4.0
  • Samba

    APP
    Samba
    4.1.0 – 4.21.0 (excl.)
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Command Injection
CWE
References

Related vulnerabilities

CVE-2025-32463CRITICAL9.3⚠ KEVPL ✓same product

Sudo: eskalacja uprawnień do root poprzez opcję --chroot (CVE-2025-32463)

CVE-2021-40438CRITICAL9.0⚠ KEVPL ✓same product

SSRF w mod_proxy Apache HTTP Server — przekierowanie żądań przez atakującego

CVE-2019-7609CRITICAL10.0⚠ KEVPL ✓same product

RCE w Kibana Timelion — wykonanie kodu z uprawnieniami procesu

CVE-2019-1003029CRITICAL9.9⚠ KEVPL ✓same product

Jenkins Script Security Plugin — sandbox bypass umożliwiający RCE

CVE-2019-1003030CRITICAL9.9⚠ KEVPL ✓same product

Jenkins Pipeline Groovy Plugin — bypass sandbox i wykonanie kodu (RCE)