cve.bz

CVE-2025-10230 OS Command Injection

10.0 criticalEPSS 40%

Critical (10.0). EPSS 40% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
40% (unchanged from 40% a week ago; 40% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-11-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-10230 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-10230?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-10230?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-10230 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12samba2:4.17.12+dfsg-0+deb12u3DEBIAN-CVE-2025-10230
Debian13samba2:4.22.6+dfsg-0+deb13u1DEBIAN-CVE-2025-10230
Debian14samba2:4.23.2+dfsg-1DEBIAN-CVE-2025-10230
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.10UBUNTU-CVE-2025-10230 USN-7826-1
Ubuntu24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.4UBUNTU-CVE-2025-10230 USN-7826-1
Ubuntu25.10samba2:4.22.3+dfsg-4ubuntu2.1UBUNTU-CVE-2025-10230 USN-7826-1
UbuntuPro:14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.20+esm15UBUNTU-CVE-2025-10230 USN-7826-2
UbuntuPro:16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.34+esm4UBUNTU-CVE-2025-10230 USN-7826-2
UbuntuPro:18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.29+esm3UBUNTU-CVE-2025-10230 USN-7826-2
UbuntuPro:20.04:LTSsamba2:4.15.13+dfsg-0ubuntu0.20.04.8+esm1UBUNTU-CVE-2025-10230 USN-7826-2
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 moresamba4.15.13+git.736.b791be993ba-150300.3.96.1SUSE-SU-2025:3677-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5samba4.15.13+git.664.e8416d8d213-3.99.1SUSE-SU-2025:03604-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS and 6 moresamba4.15.13+git.736.b791be993ba-150400.3.40.1SUSE-SU-2025:03618-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS and 3 moresamba4.17.12+git.510.0efaadf376b-150500.3.34.1SUSE-SU-2025:03603-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Module for Basesystem 15 SP6samba4.19.8+git.435.78ced6cf30d-150600.3.21.1SUSE-SU-2025:03612-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Module for Basesystem 15 SP7samba4.21.8+git.418.e80c9b2a88c-150700.3.11.2SUSE-SU-2025:3676-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.5+git.431.dc5a539f124-160000.1.1SUSE-SU-2025:21005-1
SUSELinux Micro 6.2samba4.22.5+git.431.dc5a539f124-160000.1.1SUSE-SU-2025:21026-1
openSUSELeap 15.6samba4.19.8+git.435.78ced6cf30d-150600.3.21.1SUSE-SU-2025:03612-1
openSUSELeap 16.0samba4.22.5+git.431.dc5a539f124-160000.1.1openSUSE-SU-2025:20048-1
openSUSETumbleweedsamba4.22.5+git.431.dc5a539f124-1.1openSUSE-SU-2025:15649-1
Alpinev3.22, v3.23, v3.24samba4.21.9-r0ALPINE-CVE-2025-10230
Azure Linux2sambano fix listedAZL-69782
Azure Linux3sambano fix listedAZL-69830

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

On Red Hat Enterprise Linux (RHEL) versions 6, 7, 8, 9 and 10, the Samba packages as shipped are not affected by this vulnerability. This is because Red Hat does not provide Active Directory Domain Controller (AD DC) functionality in its Samba packages, and the vulnerable wins hook execution path exists only when Samba is configured as a domain controller with WINS support enabled. As a result, the Samba deployments on RHEL cannot be exploited via this issue.

This vulnerability is considered Critical rather than Important because it enables unauthenticated remote code execution (RCE) on a Samba Active Directory Domain Controller through a trivially reachable network service. The flaw lies in the wins hook mechanism, where unvalidated NetBIOS names from incoming WINS registration packets are directly concatenated into a shell command and executed with sh -c. This means an attacker can inject arbitrary shell metacharacters and run commands with the privileges of the Samba process—often root on a DC. Unlike moderate flaws that may require authentication, complex preconditions, or result only in limited information exposure or denial of service, this issue provides a direct path to full system compromise over the network with minimal effort. The combination of remote reachability, lack of authentication, low complexity, and full confidentiality, integrity, and availability impact justifies its classification as a Critical vulnerability.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10sambaNot affected
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-10230.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • dptsec/CVE-2025-10230 Harbor Check: matches CVE 6 stars, created
    PoC for CVE-2025-10230 - Samba WINS hook command injection
  • nehkark/CVE-2025-10230 Harbor Check: matches CVE 1 star, Python, created
    CVE-2025-10230 PoC - Samba WINS Hook Command Injection
  • marcostolosa/CVE-2025-10230 0 stars, JavaScript, created
    OS command injection vulnerability in Samba that received the maximum possible CVSS v3.1 score of 10.0

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON