{"answers":{"affected":"3 open source packages ship an affected version, including internetarchive.","exploited":"There is no known exploitation of CVE-2025-58438 in the wild and no public exploit code.","fix":"Upgrade internetarchive to 5.5.1 or later.","what":"CVE-2025-58438 is a critical path traversal vulnerability in jjjake internetarchive, published on 6 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-58438 and fix it if it is affected.\n\nWhat it is: CVE-2025-58438 is a critical path traversal vulnerability in jjjake internetarchive, published on 6 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-58438 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- internetarchive (PyPI): affected all versions; fixed in 5.5.1\n- internetarchive (PyPI): affected all versions; fixed in 5.5.1\n- internetarchive (PyPI): affected all versions; fixed in 5.5.1\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-2025-58438/ (Markdown: https://insights.sbomify.com/CVE-2025-58438/index.md)","id":"CVE-2025-58438","markdown":"https://insights.sbomify.com/CVE-2025-58438/index.md","name":"CVE-2025-58438","record":{"aliases":["DEBIAN-CVE-2025-58438","DLA-4314-1","DSA-6035-1","GHSA-wx3r-v6h7-frjp","PYSEC-2026-357","UBUNTU-CVE-2025-58438","USN-7989-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Archive.org library","requires_auth":"none","summary":"Attackers can exploit unsanitized filenames in the internetarchive library to write files outside intended directories, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"internetarchive is a Python and Command-Line Interface to Archive.org In versions 5.5.0 and below, there is a directory traversal (path traversal) vulnerability in the File.download() method of the internetarchive library. The file.download() method does not properly sanitize user-supplied filenames or validate the final download path. A maliciously crafted filename could contain path traversal sequences (e.g., ../../../../windows/system32/file.txt) or illegal characters that, when processed, would cause the file to be written outside of the intended target directory. An attacker could potentially overwrite critical system files or application configuration files, leading to a denial of service, privilege escalation, or remote code execution, depending on the context in which the library is used.  The vulnerability is particularly critical for users on Windows systems, but all operating systems are affected. This issue is fixed in version 5.5.1.","ecosystems":["PyPI"],"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":"internetarchive is vulnerable to Directory Traversal through file downloads","id":"CVE-2025-58438","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"ERP: Possibility of SQL injection due to missing validation","id":"CVE-2025-58439"},"packages":[{"ecosystem":"PyPI","fixed":["5.5.1"],"introduced":["0"],"last_affected":[],"package":"internetarchive","purl":null,"source":"GHSA-wx3r-v6h7-frjp"},{"ecosystem":"PyPI","fixed":["5.5.1"],"introduced":["0"],"last_affected":[],"package":"internetarchive","purl":"pkg:pypi/internetarchive","source":"GHSA-wx3r-v6h7-frjp"},{"ecosystem":"PyPI","fixed":["5.5.1"],"introduced":["0"],"last_affected":[],"package":"internetarchive","purl":"pkg:pypi/internetarchive","source":"PYSEC-2026-357"}],"prev":{"headline":"Coder's privilege escalation vulnerability could lead to a cross workspace compromise","id":"CVE-2025-58437"},"products":["internetarchive"],"published":"2025-09-06","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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["jjjake"]},"summary":"Attackers can exploit unsanitized filenames in the internetarchive library to write files outside intended directories, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2025-58438/"}