CVE-2025-10230

Samba: command injection in wins server hook script

State
Published
Severity
10.0 Critical
Published
Nov 7, 2025
Updated
Aug 31, 2026
Reserved
Sep 10, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.110.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Affected Products

ProductVersions
samba
  • before 4.21.9Affected
  • 4.22.0 to before 4.21.5Affected
  • 4.23.0 to before 4.23.2Affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 6Red Hat
      Red Hat Enterprise Linux 6Red Hat
        Red Hat Enterprise Linux 7Red Hat
          Red Hat Enterprise Linux 8Red Hat
            Red Hat Enterprise Linux 9Red Hat
              Red Hat OpenShift Container Platform 4Red Hat
                Red Hat OpenShift Container Platform 4Red Hat

                  References

                  Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.