Skip to main content
Mallory
UnratedPublic exploitVulnerability

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

Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 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 can allow an authenticated attacker with LDAP access to take over the domain. The vulnerable function, underlying technical cause, and exact affected version ranges are not established.

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 a Samba Active Directory domain, compromising domain-level administrative control and the confidentiality and integrity of directory-managed identities and access policies.

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.

Apply vendor-fixed Samba packages. Fixed upstream releases include 4.22.10 or later in the 4.22 branch, 4.23.9 or later in the 4.23 branch, and 4.24.4 or later in the 4.24 branch. For Debian trixie, upgrade to 2:4.22.10+dfsg-0+deb13u2 or later; for unstable/sid, upgrade to 2:4.24.5+dfsg-1 or later. Debian bullseye is identified as outside security support for this issue; affected deployments should migrate to a supported, fixed release.

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 24, 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?
Apply vendor-fixed Samba packages. Fixed upstream releases include 4.22.10 or later in the 4.22 branch, 4.23.9 or later in the 4.23 branch, and 4.24.4 or later in the 4.24 branch.
Activity feed

Recent activity

9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 24, 2026EulerOS Virtualization 2.15.0 : samba (EulerOS-SA-2026-5353) | Tenable®A vulnerability listed in the Samba security update for EulerOS Virtualization 2.15.0, advisory EulerOS-SA-2026-5353. The excerpt provides no vulnerability-specific technical description. It reports available exploits and a patch publication date of November 19, 2026, at the plugin level.Read more ↗tenable nessus pluginsNews · Nov 24, 2026EulerOS Virtualization 2.15.1 : samba (EulerOS-SA-2026-5311) | Tenable®A Samba vulnerability covered by EulerOS advisory EulerOS-SA-2026-5311. The plugin reports available exploits and a patch publication date of November 19, 2026, but provides no vulnerability-specific technical details.Read more ↗tenable nessus pluginsNews · Nov 19, 2026EulerOS 2.0 SP15 : samba (EulerOS-SA-2026-5267) | Tenable®A vulnerability listed in the Samba security advisory for EulerOS 2.0 SP15. The excerpt provides no vulnerability-specific technical details. Patches are available; exploit availability is reported collectively without identifying which listed vulnerabilities have exploits.Read more ↗tenable nessus pluginsNews · Nov 19, 2026EulerOS 2.0 SP15 : samba (EulerOS-SA-2026-5212) | Tenable®Listed in the Samba security update EulerOS-SA-2026-5212 for EulerOS 2.0 SP15. The excerpt provides no vulnerability-specific description or impact. The plugin reports available exploits collectively without identifying which listed CVEs they cover.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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.