CVE-2025-10230
Samba: command injection in wins server hook script
Mitigation
- Upgrade samba to 4.23.2 or later.
- Vendor workaround: No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
Who should check
- Anyone running samba < 4.21.9; >= 4.22.0, < 4.21.5; >= 4.23.0, < 4.23.2
- Anyone running Red Hat Enterprise Linux 10 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 6 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 7 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 8 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 9 (versions: see the vendor advisory)
- Anyone running Red Hat OpenShift Container Platform 4 (versions: see the vendor advisory)
Vulnerability facts
- Affected
- samba < 4.21.9; >= 4.22.0, < 4.21.5; >= 4.23.0, < 4.23.2; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat OpenShift Container Platform 4; Red Hat OpenShift Container Platform 4
- Fixed in
- samba 4.21.9, samba 4.21.5, samba 4.23.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.91% chance of exploitation in 30 days (percentile 80, 2026-11-26)
- CWE
- CWE-78
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| samba | < 4.21.9; >= 4.22.0, < 4.21.5; >= 4.23.0, < 4.23.2 | — | cvelist |
| Red Hat Enterprise Linux 10 | — | — | cvelist |
| Red Hat Enterprise Linux 6 | — | — | cvelist |
| Red Hat Enterprise Linux 6 | — | — | cvelist |
| Red Hat Enterprise Linux 7 | — | — | cvelist |
| Red Hat Enterprise Linux 8 | — | — | cvelist |
| Red Hat Enterprise Linux 9 | — | — | cvelist |
| Red Hat OpenShift Container Platform 4 | — | — | cvelist |
| Red Hat OpenShift Container Platform 4 | — | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-10230. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-10230.md Affected: samba < 4.21.9; >= 4.22.0, < 4.21.5; >= 4.23.0, < 4.23.2; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat OpenShift Container Platform 4; Red Hat OpenShift Container Plat… Fixed in: samba 4.21.9, samba 4.21.5, samba 4.23.2 Steps: 1. Search this machine and project for samba, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://access.redhat.com/security/cve/CVE-2025-10230
- https://bugzilla.redhat.com/show_bug.cgi?id=2394377
- https://www.samba.org/samba/history/security.html
- https://www.vicarius.io/vsociety/posts/cve-2025-10230-detect-samba-vulnerability
- https://www.vicarius.io/vsociety/posts/cve-2025-10230-mitigate-samba-vulnerability
FAQ
Is CVE-2025-10230 being exploited?
There is no confirmed exploitation: CVE-2025-10230 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.91% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-10230?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-10230?
samba < 4.21.9; >= 4.22.0, < 4.21.5; >= 4.23.0, < 4.23.2; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat OpenShift Container Platform 4; Red Hat OpenShift Container Platform 4.
Is there a fix for CVE-2025-10230?
Yes. Fixed in samba 4.21.9, samba 4.21.5, samba 4.23.2. Upgrade samba to 4.23.2 or later. Vendor workaround: No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.
How do I check if I'm affected by CVE-2025-10230?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.