CVE-2026-58222

NameCVE-2026-58222
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6401-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
samba (PTS)bullseye2:4.13.13+dfsg-1~deb11u6vulnerable
bullseye (security)2:4.13.13+dfsg-1~deb11u8vulnerable
bookworm, bookworm (security)2:4.17.12+dfsg-0+deb12u4vulnerable
trixie2:4.22.10+dfsg-0+deb13u1vulnerable
trixie (security)2:4.22.10+dfsg-0+deb13u2fixed
forky2:4.24.5+dfsg-1fixed
sid2:4.24.6+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sambasourcetrixie2:4.22.10+dfsg-0+deb13u2DSA-6401-1
sambasource(unstable)2:4.24.5+dfsg-1

Notes

[bullseye] - samba <ignored> (AD only; out of security support for bullseye)
https://www.samba.org/samba/security/CVE-2026-58222-advisory.html

Search for package or bug name: Reporting problems