Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Red Hat / Red Hat Enterprise Linux 10 | unaffected 0:4.23.5-109.el10_2 before * |
| Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Support | unaffected 0:4.21.3-114.el10_0.1 before * |
| Red Hat / Red Hat Enterprise Linux 7 Extended Lifecycle Support | unaffected 0:4.10.16-26.el7_9.1 before * |
| Red Hat / Red Hat Enterprise Linux 7 Extended Lifecycle Support | unaffected 0:4.10.16-26.el7_9.1 before * |
| Red Hat / Red Hat Enterprise Linux 8 | unaffected 0:4.19.4-16.el8_10 before * |
| Red Hat / Red Hat Enterprise Linux 8 | unaffected 0:4.19.4-16.el8_10 before * |
| Red Hat / Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 0:4.13.3-12.el8_4.1 before * |
| Red Hat / Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | unaffected 0:4.13.3-12.el8_4.1 before * |
| Red Hat / Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | unaffected 0:4.15.5-16.el8_6.1 before * |
| Red Hat / Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | unaffected 0:4.15.5-16.el8_6.1 before * |
| Red Hat / Red Hat Enterprise Linux 8.8 Telecommunications Update Service | unaffected 0:4.17.5-7.el8_8.1 before * |
| Red Hat / Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | unaffected 0:4.17.5-7.el8_8.1 before * |
| Red Hat / Red Hat Enterprise Linux 9 | unaffected 0:4.23.5-10.el9_8 before * |
| Red Hat / Red Hat Enterprise Linux 9 | unaffected 0:4.23.5-10.el9_8 before * |
| Red Hat / Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | unaffected 0:4.17.5-105.el9_2.5 before * |
| Red Hat / Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | unaffected 0:4.19.4-105.el9_4.4 before * |
| Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Support | unaffected 0:4.21.3-14.el9_6.1 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.12 | unaffected 412.86.202608241157-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.13 | unaffected 413.92.202609080414-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.14 | unaffected 414.92.202608172040-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.15 | unaffected 415.92.202608180329-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.16 | unaffected 416.94.202608150307-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.17 | unaffected 417.94.202608250221-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.18 | unaffected 418.94.202608142238-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.19 | unaffected 4.19.9.6.202606241344-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.20 | unaffected 4.20.9.6.202606241928-0 before * |
| Red Hat / Red Hat OpenShift Container Platform 4.21 | unaffected 4.21.9.6.202606241859-0 before * |
| Red Hat / Red Hat Enterprise Linux 6 | unknown |
| Red Hat / Red Hat Enterprise Linux 6 | unknown |
CWE
CWE-78
References
- https://access.redhat.com/errata/RHSA-2026:22644
- https://access.redhat.com/errata/RHSA-2026:22963
- https://access.redhat.com/errata/RHSA-2026:25049
- https://access.redhat.com/errata/RHSA-2026:25979
- https://access.redhat.com/errata/RHSA-2026:28053
- https://access.redhat.com/errata/RHSA-2026:28054
- https://access.redhat.com/errata/RHSA-2026:28055
- https://access.redhat.com/errata/RHSA-2026:28056
- https://access.redhat.com/errata/RHSA-2026:28057
- https://access.redhat.com/errata/RHSA-2026:28058
- https://access.redhat.com/errata/RHSA-2026:28132
- https://access.redhat.com/errata/RHSA-2026:29799
- https://access.redhat.com/errata/RHSA-2026:29833
- https://access.redhat.com/errata/RHSA-2026:29863
- https://access.redhat.com/errata/RHSA-2026:56786
- https://access.redhat.com/errata/RHSA-2026:56853
- https://access.redhat.com/errata/RHSA-2026:56911
- https://access.redhat.com/errata/RHSA-2026:57483
- https://access.redhat.com/errata/RHSA-2026:59831
- https://access.redhat.com/errata/RHSA-2026:60019
- https://access.redhat.com/errata/RHSA-2026:65839
- https://access.redhat.com/security/cve/CVE-2026-4408
- https://bugzilla.redhat.com/show_bug.cgi?id=2479762
- https://bugzilla.samba.org/show_bug.cgi?id=16034
ADP enrichment
No English description supplied.
No references supplied.
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.
- https://access.redhat.com/security/cve/CVE-2026-4408
- https://bugzilla.redhat.com/show_bug.cgi?id=2479762
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4408.json
- https://access.redhat.com/errata/RHSA-2026:28132
- https://access.redhat.com/errata/RHSA-2026:59831
- https://access.redhat.com/errata/RHSA-2026:65839
- https://access.redhat.com/errata/RHSA-2026:56786
- https://access.redhat.com/errata/RHSA-2026:56911
- https://access.redhat.com/errata/RHSA-2026:56853
- https://access.redhat.com/errata/RHSA-2026:60019
- https://access.redhat.com/errata/RHSA-2026:57483
- https://access.redhat.com/errata/RHSA-2026:29863
- https://access.redhat.com/errata/RHSA-2026:29799
- https://access.redhat.com/errata/RHSA-2026:29833
- https://access.redhat.com/errata/RHSA-2026:28055
- https://access.redhat.com/errata/RHSA-2026:22963
- https://access.redhat.com/errata/RHSA-2026:22644
- https://access.redhat.com/errata/RHSA-2026:28057
- https://access.redhat.com/errata/RHSA-2026:28056
- https://access.redhat.com/errata/RHSA-2026:28054
- https://access.redhat.com/errata/RHSA-2026:28053
- https://access.redhat.com/errata/RHSA-2026:25979
- https://access.redhat.com/errata/RHSA-2026:25049
- https://access.redhat.com/errata/RHSA-2026:28058