ZeroHour

CVE-2025-10230

large

Unauthenticated OS Command Injection RCE in Samba AD DC WINS Hook

CVSS 3.1
10.0 critical
EPSS
40%p99
Published
()
Modified
AI analysis

CVE-2025-10230 is an OS command injection flaw (CWE-78) in the front-end WINS hook handling of Samba. When the Samba Active Directory Domain Controller processes WINS registration packets, NetBIOS name data taken from the packet is inserted into a shell command without validation or escaping, so an unauthenticated network attacker can inject shell metacharacters and commands. Successful exploitation yields remote command execution as the Samba process on the server, with critical impact (CVSS 3.1 score 10.0). Any Samba deployment acting as an AD DC or otherwise running the WINS service with a wins hook configured is affected. The flaw is not yet listed in CISA KEV and no public proof-of-concept is known, but EPSS assigns a high 39.7% probability of exploitation within 30 days.

What to do: Upgrade Samba to the patched release published by the Samba Team or your distribution/vendor as soon as it is available, since no fixed version is stated in this data. As an interim mitigation, restrict access to the NetBIOS name service ports (UDP/TCP 137) from untrusted networks and audit smb.conf for 'wins support = yes' and a configured 'wins hook'. Prioritize patching AD DCs and other Samba WINS servers exposed to untrusted networks, given the flaw requires no authentication and the high EPSS score.

Affected
Samba Team Samba (Active Directory Domain Controller / WINS server with wins hook handling)
Estimated exposure
largeplausibly tens of thousands of Samba AD DC / WINS-server deployments (Samba itself ships in virtually every Linux distribution and NAS device, but the… — Samba is ubiquitous in Linux distributions and NAS firmware, but exploitation requires the server to run the AD DC or WINS service with a wins hook, an opt-in role, so the affected population is best estimated from typical AD DC deployment…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

A flaw was found in Samba, in the front-end WINS hook handling: NetBIOS names from registration packets are passed to a shell without proper validation or escaping. Unsanitized NetBIOS name data from WINS registration packets are inserted into a shell command and executed by the Samba Active Directory Domain Controller’s wins hook, allowing an unauthenticated network attacker to achieve remote command execution as the Samba process.

Weakness
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

In the news