CVE-2026-58222
Published:July 30, 2026
Updated:August 04, 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.
Affected Packages
https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.24.0 <samba-4.24.5Fix Suggestion:
Update to version samba-4.24.5https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.23.0 <samba-4.23.10Fix Suggestion:
Update to version samba-4.23.10https://github.com/samba-team/samba.git (GITHUB):
Affected version(s) >=samba-4.0.0 <samba-4.22.11Fix Suggestion:
Update to version samba-4.22.11Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
EPSS
Base Score:
0.84