{"answers":{"affected":"3 open source packages ship an affected version, including github.com/google/safearchive. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-10389 in the wild and no public exploit code.","fix":"Upgrade github.com/google/safearchive to 0.0.0-20241025131057-f7ce9d7b6f9c or later.","what":"CVE-2024-10389 is a medium-severity path traversal vulnerability in Google Safearchive, published on 4 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-10389 and fix it if it is affected.\n\nWhat it is: CVE-2024-10389 is a medium-severity path traversal vulnerability in Google Safearchive, published on 4 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-10389 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/google/safearchive (Go): affected all versions; fixed in 0.0.0-20241025131057-f7ce9d7b6f9c\n- github.com/google/safearchive (Go): affected all versions; fixed in 0.0.0-20241025131057-f7ce9d7b6f9c\n- github.com/google/safearchive (Go): affected all versions; fixed in 0.0.0-20241025131057-f7ce9d7b6f9c\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-10389/ (Markdown: https://insights.sbomify.com/CVE-2024-10389/index.md)","id":"CVE-2024-10389","markdown":"https://insights.sbomify.com/CVE-2024-10389/index.md","name":"CVE-2024-10389","record":{"aliases":["GHSA-q3rp-vvm7-j8jg","GO-2024-3251"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Go archive library","requires_auth":"high_privilege","summary":"Attackers can write arbitrary files via symbolic links in archives on case-insensitive filesystems, potentially leading to code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"safearchive","vendor":"google"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L/AU:Y/R:U/V:D/RE:L/U:Green","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"description":"There exists a Path Traversal vulnerability in Safearchive on Platforms with Case-Insensitive Filesystems (e.g., NTFS). This allows Attackers to Write Arbitrary Files via Archive Extraction containing symbolic links. We recommend upgrading past commit f7ce9d7b6f9c6ecd72d0b0f16216b046e55e44dc","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":"Path Traversal in Safearchive","id":"CVE-2024-10389","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Elfsight Telegram Chat CC \u003c= 1.1.0 - Missing Authorization to Authenticated (Subscriber+) Stored Cross-Site Scripting","id":"CVE-2024-10390"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20241025131057-f7ce9d7b6f9c"],"introduced":["0"],"last_affected":[],"package":"github.com/google/safearchive","purl":null,"source":"GHSA-q3rp-vvm7-j8jg"},{"ecosystem":"Go","fixed":["0.0.0-20241025131057-f7ce9d7b6f9c"],"introduced":["0"],"last_affected":[],"package":"github.com/google/safearchive","purl":"pkg:golang/github.com/google/safearchive","source":"GHSA-q3rp-vvm7-j8jg"},{"ecosystem":"Go","fixed":["0.0.0-20241025131057-f7ce9d7b6f9c"],"introduced":["0"],"last_affected":[],"package":"github.com/google/safearchive","purl":"pkg:golang/github.com/google/safearchive","source":"GO-2024-3251"}],"prev":{"headline":"WordPress GDPR \u003c= 2.0.2 - Unauthenticated Stored Cross-Site Scripting","id":"CVE-2024-10388"},"products":["Safearchive"],"published":"2024-11-04","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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-21","vendors":["Google"]},"summary":"Attackers can write arbitrary files via symbolic links in archives on case-insensitive filesystems, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2024-10389/"}