{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-2447 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2007-2447 is a medium-severity command injection vulnerability in Samba Samba, published on 14 May 2007. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2007-2447 and fix it if it is affected.\n\nWhat it is: CVE-2007-2447 is a medium-severity command injection vulnerability in Samba Samba, published on 14 May 2007. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-2447 exists.\n\nAffected product: Samba Samba. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2007-2447/ (Markdown: https://insights.sbomify.com/CVE-2007-2447/index.md)","id":"CVE-2007-2447","markdown":"https://insights.sbomify.com/CVE-2007-2447/index.md","name":"CVE-2007-2447","record":{"aliases":["DEBIAN-CVE-2007-2447","GHSA-xxqh-84mj-whcj"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Samba file server","requires_auth":"low_privilege","summary":"Remote attackers can execute arbitrary commands on Samba servers via shell metacharacters in MS-RPC functions, particularly when username mapping scripts are enabled.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"samba","vendor":"samba"}],"cvss":{"score":6,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","version":"2.0"},"cwes":[],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2007-05-14","github_poc":45,"max_poc_stars":63,"metasploit":1,"nuclei":0,"refs":[{"date":"2018-08-03T18:39:56Z","kind":"github_poc","ref":"https://github.com/amriunix/CVE-2007-2447","stars":63,"title":"CVE-2007-2447 - Samba usermap script"},{"date":"2022-10-25T16:05:16Z","kind":"github_poc","ref":"https://github.com/h3x0v3rl0rd/CVE-2007-2447","stars":5,"title":"Exploit Samba smbd 3.0.20-Debian"},{"date":"2019-07-05T11:55:41Z","kind":"github_poc","ref":"https://github.com/Unix13/metasploitable2","stars":4,"title":"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."},{"date":"2021-02-22T13:43:48Z","kind":"github_poc","ref":"https://github.com/Ziemni/CVE-2007-2447-in-Python","stars":3,"title":"Python implementation of 'Username' map script' RCE Exploit for Samba 3.0.20 \u003c 3.0.25rc3 (CVE-2007-2447)."},{"date":"2021-06-30T00:13:31Z","kind":"github_poc","ref":"https://github.com/Alien0ne/CVE-2007-2447","stars":3,"title":"CVE-2007-2447 - Samba usermap script"},{"date":"2021-10-03T21:38:19Z","kind":"github_poc","ref":"https://github.com/xbufu/CVE-2007-2447","stars":2,"title":"Exploit code for CVE-2007-2447 written in Python3."},{"date":"2020-01-20T02:30:35Z","kind":"github_poc","ref":"https://github.com/JoseBarrios/CVE-2007-2447","stars":1,"title":"Remote Command Injection Vulnerability (CVE-2007-2447), allows remote attackers to execute arbitrary commands by specifying a Samba username containing shell meta characters."},{"date":"2020-04-22T11:47:16Z","kind":"github_poc","ref":"https://github.com/3x1t1um/CVE-2007-2447","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Command injection in n/a","id":"CVE-2007-2447","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"samba:samba","products":["samba:samba"],"type":"command_injection","year":"2007"},"n_packages":0,"n_references":56,"next":{"headline":"Information disclosure in n/a","id":"CVE-2007-2448"},"packages":[],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2007-2446"},"products":["n/a"],"published":"2007-05-14","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2012-1182","kev_date_added":null,"published":"2012-04-10"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2007-2446","kev_date_added":null,"published":"2007-05-14"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2004-0600","kev_date_added":null,"published":"2004-07-23"},{"cvss_score":10,"headline":"Denial of service in n/a","id":"CVE-1999-0810","kev_date_added":null,"published":"2000-01-04"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-1999-0182","kev_date_added":null,"published":"1999-09-29"},{"cvss_score":9.8,"headline":"Weak cryptography in Samba","id":"CVE-2022-45141","kev_date_added":null,"published":"2023-03-06"},{"cvss_score":9.3,"headline":"Other in n/a","id":"CVE-2009-1886","kev_date_added":null,"published":"2009-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-04","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary commands on Samba servers via shell metacharacters in MS-RPC functions, particularly when username mapping scripts are enabled.","url":"https://insights.sbomify.com/CVE-2007-2447/"}