{"answers":{"affected":"3 open source packages ship an affected version, including moin and Moin. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-6495 exists.","fix":"Upgrade moin to 1.9.6 or later.","what":"CVE-2012-6495 is a medium-severity path traversal vulnerability in n/a, published on 3 Jan 2013. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-6495 and fix it if it is affected.\n\nWhat it is: CVE-2012-6495 is a medium-severity path traversal vulnerability in n/a, published on 3 Jan 2013. 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-6495 exists.\n\nAffected packages and fixed versions:\n- moin (PyPI): affected all versions; fixed in 1.9.6\n- moin (PyPI): affected all versions; fixed in 1.9.6\n- Moin (PyPI): affected all versions; fixed in 1.9.6\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-6495/ (Markdown: https://insights.sbomify.com/CVE-2012-6495/index.md)","id":"CVE-2012-6495","markdown":"https://insights.sbomify.com/CVE-2012-6495/index.md","name":"CVE-2012-6495","record":{"aliases":["GHSA-6gx4-29v9-g9q5","PYSEC-2013-7"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"MoinMoin wiki","requires_auth":"low_privilege","summary":"Authenticated users with write permissions can overwrite arbitrary files via path traversal, potentially leading to remote code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"moinmoin","vendor":"moinmo"}],"cvss":{"score":6,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Multiple directory traversal vulnerabilities in the (1) twikidraw (action/twikidraw.py) and (2) anywikidraw (action/anywikidraw.py) actions in MoinMoin before 1.9.6 allow remote authenticated users with write permissions to overwrite arbitrary files via unspecified vectors.  NOTE: this can be leveraged with CVE-2012-6081 to execute arbitrary code.","ecosystems":["PyPI"],"exploits":{"exploitdb":2,"first_seen":"2013-05-08","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2013-05-08","kind":"exploitdb","ref":"25304","stars":null,"title":"MoinMoin - Arbitrary Command Execution"},{"date":"2013-06-24","kind":"exploitdb","ref":"26422","stars":null,"title":"MoinMoin - twikidraw Action Traversal Arbitrary File Upload (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"MoinMoin Multiple vulnerable to directory traversal","id":"CVE-2012-6495","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2012"},"n_packages":3,"n_references":9,"next":{"headline":"Active Record contains SQL Injection","id":"CVE-2012-6496"},"packages":[{"ecosystem":"PyPI","fixed":["1.9.6"],"introduced":["0"],"last_affected":[],"package":"Moin","purl":null,"source":"GHSA-6gx4-29v9-g9q5"},{"ecosystem":"PyPI","fixed":["1.9.6"],"introduced":["0"],"last_affected":[],"package":"moin","purl":"pkg:pypi/moin","source":"GHSA-6gx4-29v9-g9q5"},{"ecosystem":"PyPI","fixed":["1.9.6"],"introduced":["0"],"last_affected":[],"package":"moin","purl":"pkg:pypi/moin","source":"PYSEC-2013-7"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2012-6494"},"products":["n/a"],"published":"2013-01-03","related":[{"cvss_score":8.7,"headline":"malicious SVG attachment causing stored XSS vulnerability in MoinMoin","id":"CVE-2020-15275","kev_date_added":null,"published":"2020-11-11"},{"cvss_score":7.5,"headline":"MoinMoin Improper Access Control vulnerability","id":"CVE-2009-4762","kev_date_added":null,"published":"2010-03-29"},{"cvss_score":7.5,"headline":"MoinMoin improper sanitizes user profiles","id":"CVE-2010-0669","kev_date_added":null,"published":"2010-02-26"},{"cvss_score":7.5,"headline":"MoinMoin has improper default configuration","id":"CVE-2010-0717","kev_date_added":null,"published":"2010-02-26"},{"cvss_score":6.8,"headline":"MoinMoin has multiple vulnerabilities related to superuser list, xmlrpc and OpenID configuration","id":"CVE-2010-0668","kev_date_added":null,"published":"2010-02-26"},{"cvss_score":6.8,"headline":"MoinMoin Access Restrictions Bypassed due to improper ACL enforcement","id":"CVE-2008-6603","kev_date_added":null,"published":"2009-04-03"},{"cvss_score":6.4,"headline":"MoinMoin Directory Traversal vulnerability","id":"CVE-2012-6080","kev_date_added":null,"published":"2013-01-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Authenticated users with write permissions can overwrite arbitrary files via path traversal, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2012-6495/"}