{"answers":{"affected":"9 open source packages ship an affected version, including github.com/codeclysm/extract, github.com/codeclysm/extract/v3 and github.com/codeclysm/extract/v4. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-47877 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-47877 is a medium-severity path traversal vulnerability in codeclysm extract, published on 11 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47877 and fix it if it is affected.\n\nWhat it is: CVE-2024-47877 is a medium-severity path traversal vulnerability in codeclysm extract, published on 11 Oct 2024. 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-2024-47877 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/codeclysm/extract (Go): affected all versions; no fix listed\n- github.com/codeclysm/extract (Go): affected all versions up to 2.2.0; no fix listed\n- github.com/codeclysm/extract (Go): affected all versions up to 2.2.0; no fix listed\n- github.com/codeclysm/extract/v3 (Go): affected all versions; no fix listed\n- github.com/codeclysm/extract/v3 (Go): affected all versions up to 3.1.1; no fix listed\n- github.com/codeclysm/extract/v3 (Go): affected all versions up to 3.1.1; no fix listed\n- github.com/codeclysm/extract/v4 (Go): affected all versions; fixed in 4.0.0\n- github.com/codeclysm/extract/v4 (Go): affected all versions; fixed in 4.0.0\n- github.com/codeclysm/extract/v4 (Go): affected all versions; fixed in 4.0.0\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-2024-47877/ (Markdown: https://insights.sbomify.com/CVE-2024-47877/index.md)","id":"CVE-2024-47877","markdown":"https://insights.sbomify.com/CVE-2024-47877/index.md","name":"CVE-2024-47877","record":{"aliases":["GHSA-8rm2-93mq-jqhc","GO-2024-3196"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go archive extraction library","requires_auth":"none","summary":"A malicious archive can create symlinks outside the extraction directory, potentially leading to arbitrary file writes or code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"extract","vendor":"codeclysm"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.","ecosystems":["Go"],"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":"Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.","id":"CVE-2024-47877","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":9,"n_references":2,"next":{"headline":"Reflected cross-site scripting vulnerability (XSS) in GData extension (authorized.vt)","id":"CVE-2024-47878"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/codeclysm/extract","purl":"pkg:golang/github.com/codeclysm/extract","source":"GO-2024-3196"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.2.0"],"package":"github.com/codeclysm/extract","purl":null,"source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.2.0"],"package":"github.com/codeclysm/extract","purl":"pkg:golang/github.com/codeclysm/extract","source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/codeclysm/extract/v3","purl":"pkg:golang/github.com/codeclysm/extract/v3","source":"GO-2024-3196"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["3.1.1"],"package":"github.com/codeclysm/extract/v3","purl":null,"source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["3.1.1"],"package":"github.com/codeclysm/extract/v3","purl":"pkg:golang/github.com/codeclysm/extract/v3","source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/codeclysm/extract/v4","purl":null,"source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/codeclysm/extract/v4","purl":"pkg:golang/github.com/codeclysm/extract/v4","source":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","fixed":["4.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/codeclysm/extract/v4","purl":"pkg:golang/github.com/codeclysm/extract/v4","source":"GO-2024-3196"}],"prev":{"headline":"Sakai: Kernel users created with type roleview can login as a normal user","id":"CVE-2024-47876"},"products":["extract"],"published":"2024-10-11","related":[],"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":"Go Vulnerability Database","prefix":"GO"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-11","vendors":["codeclysm"]},"summary":"A malicious archive can create symlinks outside the extraction directory, potentially leading to arbitrary file writes or code execution.","url":"https://insights.sbomify.com/CVE-2024-47877/"}