Vulnerability · Published Jul 30, 2026 · Assigned by redhat
CVE-2026-58222Samba: samba ad ldap compare filter injection and trusted-request confusion disclose protected attributes
High 8.8
In plain English
A high-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | samba | no fix listed | DEBIAN-CVE-2026-58222 |
| Debian:13 | samba | 2:4.22.10+dfsg-0+deb13u2 | DEBIAN-CVE-2026-58222 |
| Debian:14 | samba | 2:4.24.5+dfsg-1 | DEBIAN-CVE-2026-58222 |
| Ubuntu:22.04:LTS | samba | 2:4.15.13+dfsg-0ubuntu1.13 | UBUNTU-CVE-2026-58222 |
| Ubuntu:24.04:LTS | samba | 2:4.19.5+dfsg-4ubuntu9.7 | UBUNTU-CVE-2026-58222 |
| Ubuntu:26.04:LTS | samba | 2:4.23.6+dfsg-1ubuntu2.2 | UBUNTU-CVE-2026-58222 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-90 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2026-58222 vdb-entry, x_refsource_REDHAT
- RHBZ#2502722 issue-tracking, x_refsource_REDHAT
- https://bugzilla.samba.org/show_bug.cgi?id=16148
- https://www.samba.org/samba/security/CVE-2026-58222.html