# CVE-2026-58222: Samba: samba ad ldap compare filter injection and trusted-request confusion disclose protected attributes

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-07-30T15:11:03.064Z
- Modified: 2026-07-30T17:16:33.617Z
- Weaknesses: CWE-90
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- samba: no versions given
- samba4: no versions given
- rhcos: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-58222> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2502722> (issue-tracking)
- <https://bugzilla.samba.org/show_bug.cgi?id=16148>
- <https://www.samba.org/samba/security/CVE-2026-58222.html>

## Sources

- CVE List: [CVE-2026-58222](https://www.cve.org/CVERecord?id=CVE-2026-58222), CVE Terms of Use, modified 2026-07-30
- NVD: [CVE-2026-58222](https://nvd.nist.gov/vuln/detail/CVE-2026-58222), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2026-58222 · Whole record: https://cve.day/CVE-2026-58222.json · Rebuilt by cve.day 2026-11-25T22:59:30.641Z
