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.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.8%top 43.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12sambano fix listedDEBIAN-CVE-2026-58222
Debian:13samba2:4.22.10+dfsg-0+deb13u2DEBIAN-CVE-2026-58222
Debian:14samba2:4.24.5+dfsg-1DEBIAN-CVE-2026-58222
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.13UBUNTU-CVE-2026-58222
Ubuntu:24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.7UBUNTU-CVE-2026-58222
Ubuntu:26.04:LTSsamba2:4.23.6+dfsg-1ubuntu2.2UBUNTU-CVE-2026-58222

Affected products (as reported)

Weakness: CWE-90 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References