
CVE-2025-10230 PoC - Samba WINS Hook Command Injection
The author assumes no liability for misuse or damage caused by this tool.
Research is provided strictly for educational and defensive purposes.
This repository contains a Proof-of-Concept (PoC) for CVE-2025-10230, a command-injection flaw in the WINS hook mechanism of Samba.
The flaw affects Samba installations where:
wins support = yes is enabledwins hook = ...This PoC demonstrates how specially crafted NetBIOS Name Registration packets can trigger arbitrary shell commands inside Samba.
CVE-2025-10230 is a command injection vulnerability in Samba's WINS server implementation, specifically when acting as an Active Directory Domain Controller with both WINS support and a 'wins hook' parameter configured.
CVSS:3.1: AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (10.0)
Patches addressing this issue have been posted to:
https://www.samba.org/samba/security/
Additionally, Samba 4.23.2, 4.22.5, and 4.21.9 have been issued as security releases to correct the defect. Samba administrators are advised to upgrade to these releases or apply the patch as soon as possible.
wins hook handler executes with unsanitized input< > ;Example commands that execute successfully:
ls
pwd
uname
[global]
wins support = yes
wins hook = /usr/bin/ls
python3 poc/cve-2025-10230.py \
-t <TARGET_IP> \
-n <PAYLOAD_NAME> \
-i <SOURCE_IP>
python3 poc/cve-2025-10230.py -t 192.168.0.10 -n bin -i 192.168.0.50
CVE-2025-10230/
│
├── poc/
│ └── cve-2025-10230.py
│
├── evidence/
│ └── logs.md
│
├── conf/
│ └── smb.conf
│
└── README.md
- Researcher: krakhen.dev
- GitHub: @nehkark
- Email: [email protected]
- Website: https://vciso.cloud
- Reference: https://github.com/dptsec/CVE-2025-10230/