{"answers":{"affected":"2 open source packages ship an affected version, including geshi/geshi. It affects 1 product.","exploited":"There is no known exploitation of CVE-2012-3521 in the wild and no public exploit code.","fix":"Upgrade geshi/geshi to 1.0.8.11 or later.","what":"CVE-2012-3521 is a medium-severity path traversal vulnerability in n/a, published on 13 Jun 2014. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-3521 and fix it if it is affected.\n\nWhat it is: CVE-2012-3521 is a medium-severity path traversal vulnerability in n/a, published on 13 Jun 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2012-3521 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- geshi/geshi (Packagist): affected all versions; fixed in 1.0.8.11\n- geshi/geshi (Packagist): affected all versions; fixed in 1.0.8.11\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-3521/ (Markdown: https://insights.sbomify.com/CVE-2012-3521/index.md)","id":"CVE-2012-3521","markdown":"https://insights.sbomify.com/CVE-2012-3521/index.md","name":"CVE-2012-3521","record":{"aliases":["DEBIAN-CVE-2012-3521","GHSA-fw3x-2pr2-5j64"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"GeSHi syntax highlighting library","requires_auth":"none","summary":"Remote attackers can read arbitrary files via directory traversal in the cssgen module of the GeSHi library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"geshi","vendor":"qbnz"}],"cvss":{"score":5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","version":"2.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Multiple directory traversal vulnerabilities in the cssgen contrib module in GeSHi before 1.0.8.11 allow remote attackers to read arbitrary files via a .. (dot dot) in the (1) geshi-path or (2) geshi-lang-path parameter.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GeSHi vulnerable to Directory Traversal","id":"CVE-2012-3521","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"path_traversal","year":"2012"},"n_packages":2,"n_references":6,"next":{"headline":"GeSHi vulnerable to Cross-site Scripting","id":"CVE-2012-3522"},"packages":[{"ecosystem":"Packagist","fixed":["1.0.8.11"],"introduced":["0"],"last_affected":[],"package":"geshi/geshi","purl":null,"source":"GHSA-fw3x-2pr2-5j64"},{"ecosystem":"Packagist","fixed":["1.0.8.11"],"introduced":["0"],"last_affected":[],"package":"geshi/geshi","purl":"pkg:composer/geshi/geshi","source":"GHSA-fw3x-2pr2-5j64"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2012-3520"},"products":["n/a"],"published":"2014-06-13","related":[{"cvss_score":5.1,"headline":"GeSHi CSS cssgen.php get_var cross site scripting","id":"CVE-2025-2123","kev_date_added":null,"published":"2025-03-09"},{"cvss_score":4.3,"headline":"GeSHi vulnerable to Cross-site Scripting","id":"CVE-2012-3522","kev_date_added":null,"published":"2014-06-13"}],"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":"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can read arbitrary files via directory traversal in the cssgen module of the GeSHi library.","url":"https://insights.sbomify.com/CVE-2012-3521/"}