Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
CriticalPublic exploit

Unauthenticated RCE in Samba WINS wins hook

IdentifiersCVE-2025-10230CWE-78· Improper Neutralization of Special…

CVE-2025-10230 is a critical OS command injection vulnerability in Samba’s WINS front-end hook handling. When Samba is deployed as an Active Directory Domain Controller with WINS support enabled and a non-empty 'wins hook' configured, NetBIOS names from WINS registration packets are passed into a shell command without proper validation or escaping. A remote attacker can send a crafted WINS registration request to UDP port 137 containing shell metacharacters in the NetBIOS name field, causing Samba to execute attacker-controlled shell input via the wins hook mechanism. The issue affects Samba versions 4.0 through 4.21.8, 4.22.0 through 4.22.4, and 4.23.0 through 4.23.1. Exploitation is constrained by the NetBIOS name length limit of 15 user-controlled characters, but the available information indicates that concise payloads and multi-stage command execution remain feasible.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation allows unauthenticated remote code execution in the security context of the Samba process, which may be root on affected systems. This can enable full compromise of the target host, including execution of arbitrary commands, installation of malware or persistence mechanisms, modification of system state, access to sensitive data available to the Samba service, and use of the compromised server for further lateral movement or follow-on activity.

Mitigation

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

As a temporary mitigation, disable the vulnerable feature path by removing or emptying the 'wins hook' configuration and setting 'wins support = no' where operationally feasible, particularly on Samba AD Domain Controllers. Restrict or block untrusted access to UDP port 137, especially from networks that do not require WINS registration traffic. Audit smb.conf for legacy WINS-related settings and monitor for unexpected wins hook execution, suspicious shell activity by the Samba process, and anomalous inbound WINS registration traffic.

Remediation

Patch, then assume compromise.

Upgrade Samba to a fixed release: 4.21.9, 4.22.5, 4.23.2, or later, as appropriate for the deployed branch. If upgrading is not immediately possible, apply the official Samba vendor patch referenced in Samba’s security advisory for CVE-2025-10230. Review affected Domain Controller configurations to ensure the vulnerable wins hook handling is removed or corrected as part of the update process.
PUBLIC EXPLOITS

Exploits

5 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 5 / 6 TOTALView more in app
Ashwesker-CVE-2025-10230MaturityPoCVerified exploit

This repository contains a proof-of-concept (PoC) exploit for CVE-2025-10230, a critical unauthenticated remote code execution vulnerability in Samba's WINS hook functionality when running as an Active Directory Domain Controller (AD DC) with WINS support and a hook script enabled. The exploit is implemented in a single Python script (CVE-2025-10230.py) that uses the Scapy library to craft and send a malicious WINS Name Registration packet to the target's UDP port 42. The vulnerability arises from unsanitized NetBIOS names being passed directly to a shell in the WINS hook script, allowing command injection. The script allows the attacker to specify a custom payload (shell command), with the default writing the output of 'id' to /tmp/injected_by_cve.txt on the target. The README.md provides an extensive technical and contextual overview of the vulnerability, affected configurations, impact, and mitigation steps. The exploit is a functional PoC and not weaponized, requiring the attacker to have root privileges locally to send raw packets. No hardcoded IPs or domains are present; the target is specified at runtime. The main attack vector is network-based, targeting exposed Samba AD DCs with vulnerable WINS configurations.

AshweskerDisclosed Nov 19, 2025pythonmarkdownnetwork
Blackash-CVE-2025-10230MaturityPoCVerified exploit

This repository contains a proof-of-concept (PoC) exploit for CVE-2025-10230, a critical unauthenticated remote code execution vulnerability in Samba's WINS hook handling. The exploit is implemented in a single Python script (CVE-2025-10230.py) that crafts and sends a malicious WINS Name Registration packet to a target Samba AD Domain Controller with WINS and a 'wins hook' script enabled. The vulnerability arises from unsanitized NetBIOS names being passed directly to the hook script, allowing command injection. The script uses Scapy to construct and send the packet, with a customizable payload (default: '; id > /tmp/injected_by_cve.txt 2>&1'). The README.md provides an extensive technical and contextual overview, including affected versions, impact, and mitigation advice. The exploit requires root privileges to send raw packets and targets UDP port 42 on the victim. If successful, arbitrary shell commands are executed on the Samba server, potentially leading to full system compromise. The repository is well-structured, with clear documentation and a single, focused exploit script.

AshweskerDisclosed Nov 19, 2025pythonnetwork
CVE-2025-10230MaturityPoCVerified exploit

This repository provides a proof-of-concept (PoC) exploit for CVE-2025-10230, a command injection vulnerability in Samba's WINS hook mechanism. The exploit is implemented in a single Python script (poc/cve-2025-10230.py) that crafts and sends a NetBIOS Name Service (NBNS) registration packet to a target Samba server's UDP port 137. The exploit leverages improper sanitization of the NetBIOS name field, which is directly inserted into a shell command defined by the 'wins hook' parameter in smb.conf. If the Samba server is configured as an Active Directory Domain Controller with 'wins support = yes' and a non-empty 'wins hook', arbitrary shell commands (up to 15 characters, subject to NetBIOS name restrictions) can be executed with the privileges of the Samba process (often root). The repository includes a sample vulnerable smb.conf, logs demonstrating exploitation, and a detailed README explaining the vulnerability, exploitation steps, and mitigation. No hardcoded IPs or domains are present; the exploit is generic and targets any vulnerable Samba server configured as described.

nehkarkDisclosed Nov 23, 2025pythonnetwork
Blackash-CVE-2025-10230MaturityPoCVerified exploit

This repository contains a proof-of-concept (PoC) exploit for CVE-2025-10230, a critical unauthenticated remote code execution vulnerability in Samba's WINS hook handling. The exploit is implemented in a single Python script (CVE-2025-10230.py) that uses Scapy to craft and send a malicious WINS Name Registration packet to a target Samba AD Domain Controller with WINS support and a hook script enabled. The vulnerability arises from unsanitized NetBIOS names being passed directly to a shell in the hook script, allowing command injection. The script allows the user to specify a target IP, a custom shell payload, and a spoofed source IP. By default, it attempts to execute the 'id' command on the target and write the output to /tmp/injected_by_cve.txt. The README.md provides an extensive technical and contextual overview of the vulnerability, affected configurations, impact, and mitigation steps. No hardcoded IPs or domains are present; the exploit targets any user-supplied IP running a vulnerable Samba configuration. The attack vector is network-based, requiring only access to UDP port 42 on the target. The repository is well-structured, with clear documentation and a single, focused exploit script.

B1ack4shDisclosed Nov 19, 2025pythonmarkdownnetwork
CVE-2025-10230MaturityPoCVerified exploit

This repository provides a proof-of-concept (PoC) exploit for CVE-2025-10230, a command injection vulnerability in Samba's WINS hook functionality. The main exploit script (CVE-2025-10230.py) is written in Python and crafts a NetBIOS Name Registration packet, which is sent to a user-specified WINS server IP and port. The exploit targets Samba versions prior to 4.23.2, 4.22.5, and 4.21.9, but only if WINS support is enabled and a 'wins hook' is configured. The payload is limited to a NetBIOS name (max 15 characters, restricted charset), which severely limits the potential for arbitrary command injection. The repository also includes a Docker environment for building and running a vulnerable Samba instance, complete with a custom WINS hook script and logging for demonstration purposes. The exploit demonstrates the vulnerable code path but does not provide a weaponized payload due to the inherent input restrictions. The overall structure is clear, with the main PoC in Python, supporting Docker files for testing, and a concise README.

dptsecDisclosed Oct 19, 2025pythonbashnetwork
What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity31

Community discussion across Reddit, Mastodon, and other social sources.