Vulnerability in Samba
CVE-2007-2447
The MS-RPC functionality in smbd in Samba 3.0.0 through 3.0.25rc3 allows remote attackers to execute arbitrary commands via shell metacharacters involving the (1) SamrChangePassword function, when the "username map script" smb.conf option is enabled, and allows remote authenticated users to execute commands via shell metacharacters involving other MS-RPC functions in the (2) remote printer and (3) file share management.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.0 (Medium). Vector: AV:N/AC:M/Au:S/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.498, 98.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Samba — versions 3.0.0, 3.0.1, 3.0.2
Public exploits and proof-of-concept code
Metasploit modules
76 public repositories with exploit or proof-of-concept code for this CVE:
- amriunix/CVE-2007-2447 (62 stars, last pushed 2020-08-16): CVE-2007-2447 - Samba usermap script
- h3x0v3rl0rd/CVE-2007-2447 (5 stars, last pushed 2025-06-05): Exploit Samba smbd 3.0.20-Debian
- Unix13/metasploitable2 (5 stars, last pushed 2018-07-11): PHP-CGI-REMOTE_CVE-2012-1823, UnrealIRCd, MySQL, PostgreSQL and SSH bruteforce, VSFTPD2.3.4, samba CVE-2007-2447, JAVA RMI Server, distcc daemon, misconfigured NFS files, etc.
- Alien0ne/CVE-2007-2447 (3 stars, last pushed 2021-06-30): CVE-2007-2447 - Samba usermap script
- Ziemni/CVE-2007-2447-in-Python (3 stars, last pushed 2021-02-22): Python implementation of 'Username' map script' RCE Exploit for Samba 3.0.20 < 3.0.25rc3 (CVE-2007-2447).
- xbufu/CVE-2007-2447 (2 stars, last pushed 2021-10-03): Exploit code for CVE-2007-2447 written in Python3.
- abdulsaabir/CVE-2007-2447 (1 star, last pushed 2026-01-04)
- SeifEldienAhmad/Penetration-Testing-on-Metasploitable2 (1 star, last pushed 2025-09-13): Hands-on pentest project using Kali Linux vs Metasploitable2. Includes full workflow: Nmap scanning, enumeration, Metasploit exploitation (Samba CVE-2007-2447), post-exploitation validation, and miti…
- Aviksaikat/CVE-2007-2447 (1 star, last pushed 2023-10-17): automated script for exploiting CVE-2007-2447
- s4msec/CVE-2007-2447 (1 star, last pushed 2023-03-20)
66 more are listed on the interactive page.
Also mentioned in 93 other repositories (0xConstant/ExploitDevJourney, 0xkasra/ExploitDevJourney, aadithya-vimal/Metasploitable2-Pentest, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- GLSA-200705-15 (vendor-advisory)
- secunia.com/advisories/25289 (third-party-advisory)
- 20070920 VMSA-2007-0006 Critical security updates for all supported versions of VMware ESX Server, VMware Server, VMware Workstation, VMware ACE, and VMware Player (mailing-list)
- oval:org.mitre.oval:def:10062 (signature, vdb-entry)
- www.xerox.com/downloads/usa/en/c/cert_XRX08_001.pdf
- ADV-2007-2732 (vdb-entry)
- ADV-2007-1805 (vdb-entry)
- secunia.com/advisories/26083 (third-party-advisory)
- ADV-2007-3229 (vdb-entry)
- secunia.com/advisories/25772 (third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.