Skip to content
Fencer Vulns
high 8.8

CVE-2026-58222 json

Samba: samba ad ldap compare filter injection and trusted-request confusion disclose protected attributes

published 2026-07-30 3 mo ago modified 2026-07-30 3 mo ago also EUVD-2026-51158

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

Summary

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.

Patch / fix

  • samba Debian 13 2:4.22.10+dfsg-0+deb13u2
  • samba Debian 14 2:4.24.5+dfsg-1

debian advisories DEBIAN-CVE-2026-58222

  • samba Ubuntu 22.04 LTS 2:4.15.13+dfsg-0ubuntu1.13
  • samba Ubuntu 24.04 LTS 2:4.19.5+dfsg-4ubuntu9.7
  • samba Ubuntu 26.04 LTS 2:4.23.6+dfsg-1ubuntu2.2

ubuntu advisories UBUNTU-CVE-2026-58222

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • samba SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 4.22.11+git.552.66cfeb7de0a-160000.1.1
  • samba Linux Micro 6.2 4.22.9+git.538.af6cb4fb2e-160000.1.1
  • samba SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS, SLE High Availability Extension 12 SP5 4.15.13+git.729.a8ce057e8d-3.109.1
  • samba Enterprise Storage 7.1 4.15.13+git.808.eeca19f5e1-150300.3.106.1
  • samba SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 4.17.12+git.581.f49579c6cd-150500.3.42.1
  • samba SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE High Availability Extension 15 SP6 4.19.8+git.501.67274891bc-150600.3.29.1
  • samba SLE Module for Basesystem 15 SP7, SLE High Availability Extension 15 SP7 4.21.10+git.533.31d7e5508d-150700.3.29.1
  • samba SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +4 more 4.15.13+git.808.eeca19f5e1-150400.3.52.1

suse advisories SUSE-SU-2026:23003-1SUSE-SU-2026:23129-1SUSE-SU-2026:23152-1SUSE-SU-2026:22977-1SUSE-SU-2026:3367-1SUSE-SU-2026:3366-1

  • samba openSUSE Leap 16.0 4.22.11+git.552.66cfeb7de0a-160000.1.1
  • samba openSUSE Tumbleweed 4.24.5+git.481.dba78dbdea-1.1
  • samba openSUSE Leap 16.0 4.22.9+git.538.af6cb4fb2e-160000.1.1

opensuse advisories openSUSE-SU-2026:21540-1openSUSE-SU-2026:11431-1openSUSE-SU-2026:21475-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-58222 updated cvss 8.8

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

  • Red Hat Enterprise Linux 6 samba, samba4, samba4-dc, samba-swat, samba4-libs, samba4-pidl, +17 more Red Hat Enterprise Linux 7 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +18 more Red Hat Enterprise Linux 8 ctdb, samba, libnetapi, ctdb-tests, samba-libs, samba-pidl, +24 more Red Hat Enterprise Linux 9 ctdb, samba, libldb, ldb-tools, libnetapi, samba-libs, +27 more Red Hat Enterprise Linux 10 samba Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    +1 more products
    Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
3 mo ago

Exploit prediction

0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 6
  • Red Hat Red Hat Enterprise Linux 7
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat OpenShift Container Platform 4

Classification

Weakness
  • CWE-90 Improper Neutralization of Special Elements used in an LDAP Query

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.