CVE-2025-10230
Samba vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-10230) was discovered in Samba's WINS server hook script handling. The vulnerability affects all versions of Samba since 4.0 where the WINS server is enabled on a domain controller with the 'wins hook' parameter set. This flaw allows unauthenticated remote code execution through command injection (Samba Security, Debian Tracker).

Technical details

The vulnerability stems from improper validation of NetBIOS names in WINS registration packets. When these names are passed to the wins hook program by the Samba Active Directory Domain Controller, they are inserted into a shell command string without proper validation or escaping. Since WINS is an obsolete and trusting protocol, clients can request any name within the 15-character NetBIOS limit, including shell metacharacters, enabling arbitrary command execution. The vulnerability has received a CVSS v3.1 score of 10.0 (Critical) with the vector string AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (Samba Security, NVD).

Impact

If exploited, this vulnerability allows an unauthenticated network attacker to achieve remote command execution with the privileges of the Samba process on affected systems. The impact is particularly severe as it requires no authentication and can be exploited remotely, potentially leading to complete system compromise (Ubuntu Security, Debian Tracker).

Mitigation and workarounds

Several mitigation options are available: 1) Avoid setting the 'wins hook' parameter in the smb.conf of a Samba AD Domain Controller, 2) Ensure 'wins support' is set to 'no' (the default value), or 3) Upgrade to the patched versions (Samba 4.23.2, 4.22.5, or 4.21.9). Setting an explicitly empty value for 'wins hook' is also safe. The 'wins hook' parameter is unlikely to be useful on a domain controller and may not be supported in future Samba releases (Samba Security).

Additional resources


SourceThis report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-58222HIGH8.8
  • Samba logoSamba
  • samba
NoYesJul 30, 2026
CVE-2026-58216MEDIUM5.3
  • Samba logoSamba
  • samba-krb5-printing
NoYesJul 30, 2026
CVE-2026-58218MEDIUM5.3
  • Samba logoSamba
  • ldb-tools
NoYesJul 30, 2026
CVE-2026-6949NONEN/A
  • Samba logoSamba
  • libnetapi
NoYesJul 28, 2026
CVE-2026-58224NONEN/A
  • Samba logoSamba
  • samba-winbind
NoYesJul 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management