Command Injection Affecting samba package, versions [,4.21.9)[4.22.0rc1,4.22.5)[4.23.0rc1,4.23.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-SAMBA-13560462
  • published16 Oct 2025
  • disclosed15 Oct 2025
  • creditUnknown

Introduced: 15 Oct 2025

NewCVE-2025-10230  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade samba to version 4.21.9, 4.22.5, 4.23.2 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the wins hook process. An attacker can execute arbitrary commands with the privileges of the Samba process by sending specially crafted NetBIOS names in WINS registration packets, which are concatenated into a shell command and executed without validation. This is only exploitable if the system is configured as a domain controller with both WINS support and the wins hook parameter enabled.

Workaround

This vulnerability can be mitigated by removing or leaving the wins hook parameter empty in smb.conf, ensuring that WINS support is set to no on all Domain Controllers, and restricting external access to UDP port 137 to trusted networks.

CVSS Base Scores

version 4.0
version 3.1