cve.bz

CVE-2026-58222 LDAP Injection

8.8 highEPSS 0.5%

High (8.8). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (down from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-90 Improper Neutralization of Special Elements used in an LDAP Query (LDAP Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58222?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12sambano fix listedDEBIAN-CVE-2026-58222
Debian13samba2:4.22.10+dfsg-0+deb13u2DEBIAN-CVE-2026-58222 DSA-6401-1
Debian14samba2:4.24.5+dfsg-1DEBIAN-CVE-2026-58222
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.13UBUNTU-CVE-2026-58222 USN-8621-1
Ubuntu24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.7UBUNTU-CVE-2026-58222 USN-8621-1
Ubuntu26.04:LTSsamba2:4.23.6+dfsg-1ubuntu2.2UBUNTU-CVE-2026-58222 USN-8621-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 1 moresambano fix listedUBUNTU-CVE-2026-58222
SUSEEnterprise Storage 7.1samba4.15.13+git.808.eeca19f5e1-150300.3.106.1SUSE-SU-2026:3366-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5samba4.15.13+git.729.a8ce057e8d-3.109.1SUSE-SU-2026:3367-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS and 4 moresamba4.15.13+git.808.eeca19f5e1-150400.3.52.1SUSE-SU-2026:3362-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS and 3 moresamba4.17.12+git.581.f49579c6cd-150500.3.42.1SUSE-SU-2026:3365-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6samba4.19.8+git.501.67274891bc-150600.3.29.1SUSE-SU-2026:3364-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Module for Basesystem 15 SP7samba4.21.10+git.533.31d7e5508d-150700.3.29.1SUSE-SU-2026:3363-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23129-1 SUSE-SU-2026:23152-1
SUSELinux Micro 6.2samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23003-1
SUSELinux Micro 6.2samba4.22.9+git.538.af6cb4fb2e-160000.1.1SUSE-SU-2026:22977-1
openSUSELeap 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1openSUSE-SU-2026:21540-1
openSUSELeap 16.0samba4.22.9+git.538.af6cb4fb2e-160000.1.1openSUSE-SU-2026:21475-1
openSUSETumbleweedsamba4.24.5+git.481.dba78dbdea-1.1openSUSE-SU-2026:11431-1
Azure Linux3sambano fix listedAZL-94175

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security has rated this vulnerability as having an Important security impact for Samba deployments operating as an Active Directory Domain Controller (AD DC)

```

Red Hat Enterprise Linux (RHEL) context: Standard installations of Red Hat Enterprise Linux (RHEL) are not affected. RHEL packages Samba strictly to operate as a file server (smbd), print server, or Active Directory domain member (winbindd). RHEL does not ship or support the Samba Active Directory Domain Controller (AD DC) role where this LDAP Compare request flaw exists.

```

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10sambaNot affected
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58222.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • abdelaaziz0/KDSExtract Harbor Check: matches CVE 0 stars, created
    Exploits CVE-2026-58222 to recover Samba KDS root keys and derive gMSA credentials from a low-privilege domain account.

Attack patterns (CAPEC)

  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON