CVE-2026-58222
Reported by redhat · Published July 30, 2026
A security flaw combining LDAP filter injection and improper authorization checks was found in Samba Active Directory Domain Controller (AD DC). When processing LDAP Compare requests, Samba fails to properly validate user-supplied attribute names and executes the resulting internal database search in a trusted context, bypassing normal Access Control List (ACL) enforcement. An authenticated low-privilege domain user can exploit these flaws to disclose confidential Active Directory attributes that would normally be inaccessible. The disclosed information may be leveraged to derive sensitive authentication material, potentially leading to privilege escalation and complete domain compromise. For example: In deployments configured with Group Managed Service Accounts (gMSAs), an attacker can extract the "msKds-RootKeyData" attribute and derive gMSA passwords offline, potentially leading to complete domain compromise if privileged gMSAs are present.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libsmbclient | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| libsmbclient-devel | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-winbind-krb5-locator | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-dc-libs | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-common-libs | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| libwbclient-devel | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-libs | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-dc | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba-common-tools | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| ctdb-tests | Amazon Linux | 4.10.16-24.amzn2.0.9 |
| samba | Alpine | 4.23.10-r0 |
16 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| amazon:2 | libsmbclient | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| amazon:2 | samba | 0 |
| amazon:2 | libsmbclient-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2 | samba-winbind-krb5-locator | 0 |
| amazon:2 | samba-dc-libs | 0 |
| amazon:2 | samba-common-libs | 0 |
| amazon:2 | libwbclient-devel | 0 |
| amazon:2 | samba-libs | 0 |
| amazon:2 | samba-dc | 0 |
| amazon:2 | samba-common-tools | 0 |
…and 22 more
Timeline
- Jul 28, 2026 CVE Published
- Jul 30, 2026 Coalition ESS Score
- Jul 30, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-58222
vulnetix vdb fixes CVE-2026-58222
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-58222/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vdb-entryx_refsource_REDHAT
- RHBZ#2502722 issue-trackingx_refsource_REDHAT