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.
Published: 2026-07-30
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a CWE-90 LDAP Injection flaw. Samba Active Directory Domain Controller fails to validate attribute names in LDAP Compare requests and then performs the resulting internal database search as a trusted user, bypassing normal ACL checks. This flaw allows an authenticated low‑privilege domain user to request comparison of arbitrary attributes and obtain the values of protected Active Directory attributes that should be inaccessible. If an attacker obtains attributes such as "msKds-RootKeyData" from a deployment that uses Group Managed Service Accounts, the data can be used to derive gMSA passwords offline and lead to complete domain compromise.

Affected Systems

Red Hat Enterprise Linux 6 through 10 and Red Hat OpenShift Container Platform 4 that run Samba Active Directory Domain Controller. No specific version information is supplied.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity, and the EPSS score of < 1% indicates a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is an authenticated low‑privilege domain user sending crafted LDAP Compare requests; if successful, the attacker can read sensitive attributes and potentially execute privilege escalation by deriving gMSA passwords.

Generated by OpenCVE AI on August 3, 2026 at 10:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official Samba patch provided by Red Hat for all affected RHEL 6–10 and OpenShift 4 systems
  • Upgrade Samba to the latest available release that contains the fix
  • Restrict LDAP Compare operations to privileged users or disable the feature if possible
  • Audit and monitor Active Directory logs for unauthorized Compare requests
  • Consider disabling or reconfiguring Group Managed Service Accounts until the vulnerability is resolved

Generated by OpenCVE AI on August 3, 2026 at 10:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6401-1 samba security update
Ubuntu USN Ubuntu USN USN-8621-1 Samba vulnerabilities
History

Fri, 31 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 30 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Samba
Samba samba
Vendors & Products Redhat openshift Container Platform
Samba
Samba samba

Thu, 30 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title Samba: samba ad ldap compare filter injection and trusted-request confusion disclose protected attributes
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-90
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift Openshift Container Platform
Samba Samba
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-30T16:12:35.604Z

Reserved: 2026-06-29T18:18:00.439Z

Link: CVE-2026-58222

cve-icon Vulnrichment

Updated: 2026-07-30T16:12:32.540Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-30T16:17:14.933

Modified: 2026-07-30T17:16:33.617

Link: CVE-2026-58222

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-28T10:00:00Z

Links: CVE-2026-58222 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T11:00:03Z

Weaknesses
  • CWE-90

    Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')