Skip to main content
EPSS 0.5%top 61%

Samba AD LDAP Compare filter injection and trusted-request confusion disclose protected attributes.

0
Unknown
Published: 07/30/2026 (07/30/2026, 15:11:03 UTC)
Source: GCVE Database
Product: samba

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 software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.3.11+dfsg-0ubuntu0.14.04.20+esm15?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=2:3.6.18-1ubuntu3=2:4.0.10+dfsg-4ubuntu2=2:4.0.13+dfsg-1ubuntu1=2:4.1.3+dfsg-2ubuntu2=2:4.1.3+dfsg-2ubuntu3=2:4.1.3+dfsg-2ubuntu4=2:4.1.3+dfsg-2ubuntu5=2:4.1.6+dfsg-1ubuntu1=2:4.1.6+dfsg-1ubuntu2=2:4.1.6+dfsg-1ubuntu2.14.04.1=2:4.1.6+dfsg-1ubuntu2.14.04.2=2:4.1.6+dfsg-1ubuntu2.14.04.3=2:4.1.6+dfsg-1ubuntu2.14.04.4=2:4.1.6+dfsg-1ubuntu2.14.04.5=2:4.1.6+dfsg-1ubuntu2.14.04.7=2:4.1.6+dfsg-1ubuntu2.14.04.8=2:4.1.6+dfsg-1ubuntu2.14.04.9=2:4.1.6+dfsg-1ubuntu2.14.04.11=2:4.1.6+dfsg-1ubuntu2.14.04.12=2:4.1.6+dfsg-1ubuntu2.14.04.13=2:4.3.8+dfsg-0ubuntu0.14.04.2=2:4.3.9+dfsg-0ubuntu0.14.04.1=2:4.3.9+dfsg-0ubuntu0.14.04.3=2:4.3.11+dfsg-0ubuntu0.14.04.1=2:4.3.11+dfsg-0ubuntu0.14.04.2=2:4.3.11+dfsg-0ubuntu0.14.04.3=2:4.3.11+dfsg-0ubuntu0.14.04.4=2:4.3.11+dfsg-0ubuntu0.14.04.6=2:4.3.11+dfsg-0ubuntu0.14.04.7=2:4.3.11+dfsg-0ubuntu0.14.04.8=2:4.3.11+dfsg-0ubuntu0.14.04.9=2:4.3.11+dfsg-0ubuntu0.14.04.10=2:4.3.11+dfsg-0ubuntu0.14.04.11=2:4.3.11+dfsg-0ubuntu0.14.04.12=2:4.3.11+dfsg-0ubuntu0.14.04.13=2:4.3.11+dfsg-0ubuntu0.14.04.14=2:4.3.11+dfsg-0ubuntu0.14.04.16=2:4.3.11+dfsg-0ubuntu0.14.04.17=2:4.3.11+dfsg-0ubuntu0.14.04.19=2:4.3.11+dfsg-0ubuntu0.14.04.20=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm1=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm2=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm3=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm4=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm6=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm7=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm8=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm9=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm11=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm12=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm13=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm14=2:4.3.11+dfsg-0ubuntu0.14.04.20+esm15
Ubuntu:Pro:16.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.3.11+dfsg-0ubuntu0.16.04.34+esm4?arch=source&distro=esm-infra/xenial
Affected versions
=2:4.1.17+dfsg-4ubuntu2=2:4.1.20+dfsg-1ubuntu1=2:4.1.20+dfsg-1ubuntu2=2:4.1.20+dfsg-1ubuntu3=2:4.1.20+dfsg-1ubuntu5=2:4.3.3+dfsg-1ubuntu1=2:4.3.3+dfsg-1ubuntu2=2:4.3.3+dfsg-1ubuntu3=2:4.3.6+dfsg-1ubuntu1=2:4.3.8+dfsg-0ubuntu1=2:4.3.9+dfsg-0ubuntu0.16.04.1=2:4.3.9+dfsg-0ubuntu0.16.04.2=2:4.3.9+dfsg-0ubuntu0.16.04.3=2:4.3.11+dfsg-0ubuntu0.16.04.1=2:4.3.11+dfsg-0ubuntu0.16.04.3=2:4.3.11+dfsg-0ubuntu0.16.04.5=2:4.3.11+dfsg-0ubuntu0.16.04.6=2:4.3.11+dfsg-0ubuntu0.16.04.7=2:4.3.11+dfsg-0ubuntu0.16.04.8=2:4.3.11+dfsg-0ubuntu0.16.04.9=2:4.3.11+dfsg-0ubuntu0.16.04.10=2:4.3.11+dfsg-0ubuntu0.16.04.11=2:4.3.11+dfsg-0ubuntu0.16.04.12=2:4.3.11+dfsg-0ubuntu0.16.04.13=2:4.3.11+dfsg-0ubuntu0.16.04.15=2:4.3.11+dfsg-0ubuntu0.16.04.16=2:4.3.11+dfsg-0ubuntu0.16.04.17=2:4.3.11+dfsg-0ubuntu0.16.04.18=2:4.3.11+dfsg-0ubuntu0.16.04.19=2:4.3.11+dfsg-0ubuntu0.16.04.20=2:4.3.11+dfsg-0ubuntu0.16.04.21=2:4.3.11+dfsg-0ubuntu0.16.04.23=2:4.3.11+dfsg-0ubuntu0.16.04.24=2:4.3.11+dfsg-0ubuntu0.16.04.25=2:4.3.11+dfsg-0ubuntu0.16.04.26=2:4.3.11+dfsg-0ubuntu0.16.04.27=2:4.3.11+dfsg-0ubuntu0.16.04.28=2:4.3.11+dfsg-0ubuntu0.16.04.29=2:4.3.11+dfsg-0ubuntu0.16.04.30=2:4.3.11+dfsg-0ubuntu0.16.04.31=2:4.3.11+dfsg-0ubuntu0.16.04.32=2:4.3.11+dfsg-0ubuntu0.16.04.34=2:4.3.11+dfsg-0ubuntu0.16.04.34+esm1=2:4.3.11+dfsg-0ubuntu0.16.04.34+esm2=2:4.3.11+dfsg-0ubuntu0.16.04.34+esm3=2:4.3.11+dfsg-0ubuntu0.16.04.34+esm4
Ubuntu:Pro:18.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm3?arch=source&distro=esm-infra/bionic
Affected versions
=2:4.6.7+dfsg-1ubuntu3=2:4.7.1+dfsg-1ubuntu1=2:4.7.3+dfsg-1ubuntu1=2:4.7.4+dfsg-1ubuntu1=2:4.7.6+dfsg~ubuntu-0ubuntu1=2:4.7.6+dfsg~ubuntu-0ubuntu2=2:4.7.6+dfsg~ubuntu-0ubuntu2.2=2:4.7.6+dfsg~ubuntu-0ubuntu2.4=2:4.7.6+dfsg~ubuntu-0ubuntu2.5=2:4.7.6+dfsg~ubuntu-0ubuntu2.6=2:4.7.6+dfsg~ubuntu-0ubuntu2.7=2:4.7.6+dfsg~ubuntu-0ubuntu2.9=2:4.7.6+dfsg~ubuntu-0ubuntu2.10=2:4.7.6+dfsg~ubuntu-0ubuntu2.11=2:4.7.6+dfsg~ubuntu-0ubuntu2.13=2:4.7.6+dfsg~ubuntu-0ubuntu2.14=2:4.7.6+dfsg~ubuntu-0ubuntu2.15=2:4.7.6+dfsg~ubuntu-0ubuntu2.16=2:4.7.6+dfsg~ubuntu-0ubuntu2.17=2:4.7.6+dfsg~ubuntu-0ubuntu2.18=2:4.7.6+dfsg~ubuntu-0ubuntu2.19=2:4.7.6+dfsg~ubuntu-0ubuntu2.20=2:4.7.6+dfsg~ubuntu-0ubuntu2.21=2:4.7.6+dfsg~ubuntu-0ubuntu2.23=2:4.7.6+dfsg~ubuntu-0ubuntu2.24=2:4.7.6+dfsg~ubuntu-0ubuntu2.26=2:4.7.6+dfsg~ubuntu-0ubuntu2.27=2:4.7.6+dfsg~ubuntu-0ubuntu2.28=2:4.7.6+dfsg~ubuntu-0ubuntu2.29=2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm1=2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm2=2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm3
Ubuntu:Pro:20.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.15.13+dfsg-0ubuntu0.20.04.8+esm2?arch=source&distro=esm-infra/focal
Affected versions
=2:4.10.7+dfsg-0ubuntu2=2:4.10.7+dfsg-0ubuntu3=2:4.11.1+dfsg-3ubuntu1=2:4.11.1+dfsg-3ubuntu2=2:4.11.1+dfsg-3ubuntu4=2:4.11.5+dfsg-1ubuntu1=2:4.11.5+dfsg-1ubuntu2=2:4.11.6+dfsg-0ubuntu1=2:4.11.6+dfsg-0ubuntu1.1=2:4.11.6+dfsg-0ubuntu1.2=2:4.11.6+dfsg-0ubuntu1.3=2:4.11.6+dfsg-0ubuntu1.4=2:4.11.6+dfsg-0ubuntu1.5=2:4.11.6+dfsg-0ubuntu1.6=2:4.11.6+dfsg-0ubuntu1.8=2:4.11.6+dfsg-0ubuntu1.9=2:4.11.6+dfsg-0ubuntu1.10=2:4.13.14+dfsg-0ubuntu0.20.04.1=2:4.13.14+dfsg-0ubuntu0.20.04.2=2:4.13.14+dfsg-0ubuntu0.20.04.3=2:4.13.14+dfsg-0ubuntu0.20.04.4=2:4.13.17~dfsg-0ubuntu0.21.04.1=2:4.13.17~dfsg-0ubuntu0.21.04.2=2:4.13.17~dfsg-0ubuntu1.20.04.1=2:4.13.17~dfsg-0ubuntu1.20.04.2=2:4.13.17~dfsg-0ubuntu1.20.04.4=2:4.13.17~dfsg-0ubuntu1.20.04.5=2:4.15.13+dfsg-0ubuntu0.20.04.1=2:4.15.13+dfsg-0ubuntu0.20.04.2=2:4.15.13+dfsg-0ubuntu0.20.04.3=2:4.15.13+dfsg-0ubuntu0.20.04.4=2:4.15.13+dfsg-0ubuntu0.20.04.5=2:4.15.13+dfsg-0ubuntu0.20.04.6=2:4.15.13+dfsg-0ubuntu0.20.04.7=2:4.15.13+dfsg-0ubuntu0.20.04.8=2:4.15.13+dfsg-0ubuntu0.20.04.8+esm1=2:4.15.13+dfsg-0ubuntu0.20.04.8+esm2
Ubuntu:22.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.15.13+dfsg-0ubuntu1.13?arch=source&distro=jammy
Affected versions
<2:4.15.13+dfsg-0ubuntu1.13=2:4.13.5+dfsg-2ubuntu2=2:4.13.5+dfsg-2ubuntu3=2:4.13.14+dfsg-0ubuntu1=2:4.13.14+dfsg-0ubuntu2=2:4.15.5~dfsg-0ubuntu1=2:4.15.5~dfsg-0ubuntu2=2:4.15.5~dfsg-0ubuntu4=2:4.15.5~dfsg-0ubuntu5=2:4.15.5~dfsg-0ubuntu5.1=2:4.15.9+dfsg-0ubuntu0.2=2:4.15.9+dfsg-0ubuntu0.3=2:4.15.13+dfsg-0ubuntu1=2:4.15.13+dfsg-0ubuntu1.1=2:4.15.13+dfsg-0ubuntu1.2=2:4.15.13+dfsg-0ubuntu1.3=2:4.15.13+dfsg-0ubuntu1.4=2:4.15.13+dfsg-0ubuntu1.5=2:4.15.13+dfsg-0ubuntu1.6=2:4.15.13+dfsg-0ubuntu1.7=2:4.15.13+dfsg-0ubuntu1.8=2:4.15.13+dfsg-0ubuntu1.9=2:4.15.13+dfsg-0ubuntu1.10=2:4.15.13+dfsg-0ubuntu1.12
Ubuntu:24.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.19.5+dfsg-4ubuntu9.7?arch=source&distro=noble
Affected versions
<2:4.19.5+dfsg-4ubuntu9.7=2:4.18.6+dfsg-1ubuntu2=2:4.18.6+dfsg-1ubuntu2.1=2:4.18.6+dfsg-1ubuntu2.2=2:4.19.4+dfsg-3ubuntu1=2:4.19.5+dfsg-1ubuntu1=2:4.19.5+dfsg-4ubuntu7=2:4.19.5+dfsg-4ubuntu8=2:4.19.5+dfsg-4ubuntu9=2:4.19.5+dfsg-4ubuntu9.2=2:4.19.5+dfsg-4ubuntu9.3=2:4.19.5+dfsg-4ubuntu9.4=2:4.19.5+dfsg-4ubuntu9.6
Ubuntu:26.04:LTSmore threats →ghsa
samba
pkg:deb/ubuntu/samba@2:4.23.6+dfsg-1ubuntu2.2?arch=source&distro=resolute
Affected versions
<2:4.23.6+dfsg-1ubuntu2.2=2:4.22.3+dfsg-4ubuntu2=2:4.22.3+dfsg-4ubuntu2.1=2:4.22.3+dfsg-4ubuntu3=2:4.22.3+dfsg-4ubuntu4=2:4.23.4+dfsg-1ubuntu1=2:4.23.5+dfsg-1ubuntu2=2:4.23.6+dfsg-1ubuntu1=2:4.23.6+dfsg-1ubuntu2=2:4.23.6+dfsg-1ubuntu2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 17:07:57 UTC

Technical Analysis

This vulnerability arises from improper neutralization of special elements in LDAP queries within Samba AD DC on Red Hat Enterprise Linux 10. When processing LDAP Compare requests, Samba fails to validate user-supplied attribute names properly, executing internal database searches in a trusted context and bypassing ACL enforcement. An authenticated low-privilege user can exploit this to disclose confidential Active Directory attributes, including sensitive authentication material like the msKds-RootKeyData attribute used in gMSAs. Extracting this data can enable offline derivation of gMSA passwords, risking complete domain compromise if privileged gMSAs exist. The vulnerability is present in cloud-hosted services, with Red Hat responsible for patching.

Potential Impact

An authenticated low-privilege domain user can bypass access controls to access confidential Active Directory attributes. This disclosure can lead to extraction of sensitive authentication data, such as gMSA passwords, enabling offline attacks that may escalate privileges and compromise the entire domain. The impact includes confidentiality, integrity, and availability consequences, rated high severity with a CVSS score of 8.8.

Mitigation Recommendations

Red Hat manages remediation for this cloud-hosted service and has made a patch available. Users should consult the official Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-58222 for patch application instructions and ensure their systems are updated accordingly to mitigate this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-58222
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]

Threat ID: 6a6941bb9c2644c7f86af4a2

Added to database: 07/28/2026, 23:56:43 UTC

Last enriched: 07/30/2026, 17:07:57 UTC

Last updated: 09/12/2026, 18:19:44 UTC

Views: 70

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses