{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-2982 exists.","fix":"No fix has been published for CVE-2012-2982 yet. Limit exposure of the affected software until one is available.","what":"CVE-2012-2982 is a medium-severity command injection vulnerability in n/a, published on 11 Sep 2012. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-2982 and fix it if it is affected.\n\nWhat it is: CVE-2012-2982 is a medium-severity command injection vulnerability in n/a, published on 11 Sep 2012. 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-2012-2982 exists.\n\nAffected product: n/a. 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-2012-2982/ (Markdown: https://insights.sbomify.com/CVE-2012-2982/index.md)","id":"CVE-2012-2982","markdown":"https://insights.sbomify.com/CVE-2012-2982/index.md","name":"CVE-2012-2982","record":{"aliases":["GHSA-vpgr-2w9j-94m5"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Webmin system administration","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary commands on Webmin servers by injecting pipe characters into file paths.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"webmin","vendor":"gentoo"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"file/show.cgi in Webmin 1.590 and earlier allows remote authenticated users to execute arbitrary commands via an invalid character in a pathname, as demonstrated by a | (pipe) character.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2012-09-06","github_poc":18,"max_poc_stars":42,"metasploit":1,"nuclei":0,"refs":[{"date":"2021-09-04T04:01:56Z","kind":"github_poc","ref":"https://github.com/JohnHammond/CVE-2012-2982","stars":42,"title":"A Python replicated exploit for Webmin 1.580 /file/show.cgi Remote Code Execution"},{"date":"2020-08-05T02:54:10Z","kind":"github_poc","ref":"https://github.com/cd6629/CVE-2012-2982-Python-PoC","stars":5,"title":"This was converted from a metasploit module as an exercise for OSCP studying"},{"date":"2022-12-15T12:45:48Z","kind":"github_poc","ref":"https://github.com/0xTas/CVE-2012-2982","stars":3,"title":"An exploit for CVE-2012-2982 implemented in Rust"},{"date":"2020-10-25T23:37:32Z","kind":"github_poc","ref":"https://github.com/OstojaOfficial/CVE-2012-2982","stars":2,"title":"Python exploit for CVE-2012-2982"},{"date":"2021-03-18T16:47:43Z","kind":"github_poc","ref":"https://github.com/Gvmyz/CVE-2012-2982_Python","stars":1,"title":"PoC Python script as an exercice from tryhackme."},{"date":"2026-01-05T14:43:22Z","kind":"github_poc","ref":"https://github.com/JRrooot/CVE-2012-2982-Webmin-RCE","stars":1,"title":"Python PoC for Webmin 1.580 Remote Command Execution (CVE-2012-2982)"},{"date":"2012-09-06","kind":"metasploit","ref":"exploit/unix/webapp/webmin_show_cgi_exec","stars":null,"title":"Webmin /file/show.cgi Remote Command Execution"},{"date":"2012-10-10","kind":"exploitdb","ref":"21851","stars":null,"title":"Webmin 1.580 - '/file/show.cgi' Remote Command Execution (Metasploit)"}],"tier":"weaponised"},"has_fix":null,"headline":"Command injection in n/a","id":"CVE-2012-2982","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2012"},"n_packages":0,"n_references":6,"next":{"headline":"Missing authorization in n/a","id":"CVE-2012-2983"},"packages":[],"prev":{"headline":"Code injection in n/a","id":"CVE-2012-2981"},"products":["n/a"],"published":"2012-09-11","related":[{"cvss_score":6.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2012-4893","kev_date_added":null,"published":"2012-09-11"},{"cvss_score":6,"headline":"Code injection in n/a","id":"CVE-2012-2981","kev_date_added":null,"published":"2012-09-11"},{"cvss_score":5,"headline":"Missing authorization in n/a","id":"CVE-2012-2983","kev_date_added":null,"published":"2012-09-11"},{"cvss_score":5,"headline":"Information disclosure in n/a","id":"CVE-2005-0427","kev_date_added":null,"published":"2005-02-15"}],"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Authenticated attackers can execute arbitrary commands on Webmin servers by injecting pipe characters into file paths.","url":"https://insights.sbomify.com/CVE-2012-2982/"}