Skip to main content
Mallory
UnratedPublic exploitVulnerability

CVE-2026-58221: Authenticated LDAP Domain Takeover in Samba Active Directory

Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS-Not scored
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2026-58221

CVE-2026-58221 is a vulnerability in Samba Active Directory that allows an authenticated attacker with LDAP access to potentially take over the domain. The vulnerable function and underlying technical defect are not specified.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can result in takeover of the affected Samba Active Directory domain, compromising its administrative security boundary. More granular effects and the precise privileges obtained are not specified.

Mitigation

If you can’t patch tonight, do this now.

No vulnerability-specific workaround is documented. Prioritize patching affected Samba Active Directory deployments.

Remediation

Patch, then assume compromise.

Upgrade Samba to version 4.22.10 or later in the 4.22 branch, 4.23.9 or later in the 4.23 branch, or 4.24.4 or later in the 4.24 branch. For Debian trixie, install 2:4.22.10+dfsg-0+deb13u2 or later; for unstable/sid, install 2:4.24.5+dfsg-1 or later. Huawei EulerOS users should apply the applicable Samba security update, including EulerOS-SA-2026-5267 for EulerOS 2.0 SP15. Debian bullseye is identified as outside security support for this issue.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-58221This standalone repository contains one Python CLI exploit, a README, an MIT license, and a file named gitignore. The listed file sizes total 55,075 bytes; no repository URL, revision, or archive size was supplied, so those metadata fields are unavailable. Both the README and the exploit implementation are truncated, limiting verification of the advertised capabilities. The repository attributes CVE-2026-58221 to an interaction between insufficient filtering of authenticated LDAP requests and an ACL bypass for Samba LDB special DNs. It claims ordinary authenticated users can modify records such as @MODULES. The visible Python helpers invoke ldapsearch and ldapmodify through subprocess argument lists, authenticate using operator-provided credentials, and disable TLS certificate validation. No fixed victim address, callback endpoint, or exfiltration destination appears in the visible implementation. The CLI exposes check, assess, exploit, fix, and cleanup modes. Advertised exploitation options include writing the expected samba_dsdb module value back unchanged, replacing the module list to disrupt initialization, and a local-filesystem-assisted Domain Admin escalation using replacement ACL libraries. These are substantive exploit capabilities rather than detection alone, but their actual implementation and reliability cannot be confirmed from the omitted sections. The documentation inconsistently calls check mode read-only while also describing a same-value write; it should therefore not be assumed to be non-mutating. The claimed affected versions and fixes—4.22.11, 4.23.x, and 4.24.x—are repository assertions, not independently verified findings. There is insufficient evidence to label the repository fake, but neither the CVE attribution nor successful exploitation is established by this excerpt. Operational concerns include credentials exposed in subprocess arguments, disabled server-certificate validation, potentially sensitive evidence files, and destructive changes that may require console recovery. The ignore-pattern file is named gitignore rather than .gitignore, so Git would not automatically apply those protections.DevAli00 · Disclosed Oct 18, 2026 · python · network · localOperational
FAQ

Frequently asked questions

Is CVE-2026-58221 exploited in the wild?
As of Nov 19, 2026, Mallory has no reports of CVE-2026-58221 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-58221?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-58221, the earliest disclosed Oct 18, 2026.
Is there a patch for CVE-2026-58221?
Upgrade Samba to version 4.22.10 or later in the 4.22 branch, 4.23.9 or later in the 4.23 branch, or 4.24.4 or later in the 4.24 branch. For Debian trixie, install 2:4.22.10+dfsg-0+deb13u2 or later; for unstable/sid, install 2:4.24.5+dfsg-1 or later.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.