{"id":"CVE-2025-58438","aliases":["DEBIAN-CVE-2025-58438","DLA-4314-1","DSA-6035-1","EUVD-2025-27084","GHSA-wx3r-v6h7-frjp","PYSEC-2026-357","UBUNTU-CVE-2025-58438","USN-7989-1"],"status":"published","title":"internetarchive is vulnerable to Directory Traversal through file downloads","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.","severity":{"version":"4.0","score":9.4,"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","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.01602,"percentile":0.76171,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2025-09-05T21:00:42Z","modified":"2026-10-28T02:30:24Z","fixes":[{"ecosystem":"PyPI","package":"internetarchive","fixed_in":["5.5.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"python-internetarchive","fixed_in":["3.3.0-2~deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-internetarchive","fixed_in":["5.4.0-2~deb13u1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-internetarchive","fixed_in":["5.5.1-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"python-internetarchive","fixed_in":["1.9.9-1+deb11u1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-internetarchive","fixed_in":["1.9.0-3ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"python-internetarchive","fixed_in":["1.9.9-1ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-internetarchive","fixed_in":["3.5.0-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:25.10","package":"python-internetarchive","fixed_in":["5.4.0-1ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.5.0"},{"fixed":"5.5.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.0-2~deb12u1"}]}],"versions":["3.3.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.0-2~deb13u1"}]}],"versions":["5.4.0-1"]},{"source":"osv","ecosystem":"Debian:14","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.1-1"}]}],"versions":["5.4.0-1","5.4.0-2~deb13u1"]},{"source":"osv","ecosystem":"Debian:11","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.9-1+deb11u1"}]}],"versions":["1.9.9-1"]},{"source":"osv","ecosystem":"Debian:12","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.0-2~deb12u1"}]}],"versions":["3.3.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.0-2~deb13u1"}]}],"versions":["5.4.0-1"]},{"source":"osv","ecosystem":"PyPI","package":"internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.1"}]}],"versions":["0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.6","0.3.7","0.3.8","0.3.9","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.1","0.5.2","0.5.4","0.5.5","0.5.7","0.5.9","0.6.0","0.6.1","0.6.2","0.6.3","0.6.5","0.6.6","0.6.8","0.6.9","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.7.9","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.9","0.9.0","0.9.1","0.9.2","0.9.3","0.9.5","0.9.6","0.9.7","0.9.8","1.0.0","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","1.9.0","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.9","2.0.0","2.0.2","2.0.3","2.1.0","2.2.0","2.3.0","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","4.0.1","4.1.0","5.0.0","5.0.1","5.0.2","5.0.3","5.0.3.dev1","5.0.4","5.0.5","5.1.0","5.2.0","5.2.1","5.3.0","5.3.1","5.4.0","5.4.1","5.5.0"]},{"source":"osv","ecosystem":"PyPI","package":"internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.1"}]}],"versions":["0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.6","0.3.7","0.3.8","0.3.9","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.1","0.5.2","0.5.4","0.5.5","0.5.7","0.5.9","0.6.0","0.6.1","0.6.2","0.6.3","0.6.5","0.6.6","0.6.8","0.6.9","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.7.9","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.9","0.9.0","0.9.1","0.9.2","0.9.3","0.9.5","0.9.6","0.9.7","0.9.8","1.0.0","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","1.9.0","1.9.2","1.9.3","1.9.4","1.9.5","1.9.6","1.9.9","2.0.0","2.0.2","2.0.3","2.1.0","2.2.0","2.3.0","3.0.0","3.0.1","3.0.2","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","4.0.1","4.1.0","5.0.0","5.0.1","5.0.2","5.0.3","5.0.3.dev1","5.0.4","5.0.5","5.1.0","5.2.0","5.2.1","5.3.0","5.3.1","5.4.0","5.4.1","5.5.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.0-3ubuntu0.1~esm1"}]}],"versions":["1.8.1-1","1.8.5-1","1.9.0-2","1.9.0-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.9-1ubuntu0.1"}]}],"versions":["1.9.9-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.0-1ubuntu0.1~esm1"}]}],"versions":["3.3.0-1","3.5.0-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.0-1ubuntu0.1"}]}],"versions":["5.2.1-1","5.3.1-1","5.4.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.0-3ubuntu0.1~esm1"}]}],"versions":["1.8.1-1","1.8.5-1","1.9.0-2","1.9.0-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.9-1ubuntu0.1"}]}],"versions":["1.9.9-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.0-1ubuntu0.1~esm1"}]}],"versions":["3.3.0-1","3.5.0-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"python-internetarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.0-1ubuntu0.1"}]}],"versions":["5.2.1-1","5.3.1-1","5.4.0-1"]}],"products":[{"vendor":"jjjake","product":"internetarchive"}],"references":[{"url":"https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp","tags":["x_refsource_CONFIRM","advisory","web","report"]},{"url":"https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2","tags":["x_refsource_MISC","fix","web","report"]},{"url":"https://github.com/jjjake/internetarchive/releases/tag/v5.5.1","tags":["x_refsource_MISC","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00030.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58438","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/internetarchive/PYSEC-2026-357.yaml","tags":["web"]},{"url":"https://pypi.org/project/internetarchive","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-wx3r-v6h7-frjp","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58438.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-58438","tags":["advisory"]},{"url":"https://github.com/jjjake/internetarchive","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2025-58438","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-58438","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7989-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-58438","title":"internetarchive is vulnerable to Directory Traversal through file downloads","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.","status":"published","published":"2025-09-06T18:45:55.833Z","modified":"2025-11-03T18:13:54.48Z","cvss":[{"version":"4.0","score":9.4,"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","level":"critical","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:32:37.351404Z"}],"euvd":[{"id":"EUVD-2025-27084","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.","status":"published","published":"2025-09-06T18:45:55Z","modified":"2025-11-03T18:13:54Z","cvss":[{"version":"4.0","score":9.4,"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","level":"critical"}],"updated_at":"2026-11-02T19:49:34.635725Z"}],"ghsa":[{"id":"GHSA-wx3r-v6h7-frjp","title":"internetarchive Vulnerable to Directory Traversal in File.download()","description":"### Impact\n**What kind of vulnerability is it?**\nThis is a **Critical** severity directory traversal (path traversal) vulnerability in the `File.download()` method of the `internetarchive` library.\n\n**Who is impacted?**\nAll users of the `internetarchive` library versions `\u003c 5.5.1` are impacted. The vulnerability is particularly critical for users on **Windows systems**, but all operating systems are affected.\n\n**Description of the vulnerability:**\nThe vulnerability existed because the `file.download()` method did 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.\n\n**Potential Impact:**\nAn 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.\n\n### Patches\n**Has the problem been patched?**\nYes, the problem has been patched.\n\n**What versions should users upgrade to?**\nUsers must upgrade to version **5.5.1** or later.\n\n### Workarounds\nIs there a way for users to fix or remediate the vulnerability without upgrading?\nThere is no direct workaround that does not involve upgrading the library. The vulnerability is in the core logic of the file download process.\n\nThe only alternative for users who absolutely cannot upgrade is to implement their own custom download function that:\n\n1. Manually sanitizes all filenames using a robust method.\n2. Validates that the resolved absolute path of the download target is within the intended directory before writing any files.\n\nHowever, this essentially re-implements the fix and is not recommended. Upgrading to the patched version is the only safe and supported solution.\n\n### References\n\n- [Release Notes for v5.5.1](https://github.com/jjjake/internetarchive/releases/tag/v5.5.1)\n- [Commit with the fix](https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2)\n- **CVE Identifier:**  CVE-2025-58438","status":"published","published":"2025-09-05T21:00:42Z","modified":"2026-10-27T17:25:04Z","cvss":[{"version":"4.0","score":9.4,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:41:38.969831Z"}],"nvd":[{"id":"CVE-2025-58438","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.","status":"published","published":"2025-09-06T19:15:38.533Z","modified":"2026-06-17T09:44:27.547Z","cvss":[{"version":"4.0","score":9.4,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:11:27.73916Z"}],"osv":[{"id":"CVE-2025-58438","title":"internetarchive is vulnerable to Directory Traversal through file downloads","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.","status":"published","published":"2025-09-06T18:45:55.833Z","modified":"2026-10-28T02:30:24.745077281Z","cvss":[{"version":"4.0","score":9.4,"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","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:51.190588Z"},{"id":"DEBIAN-CVE-2025-58438","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.","status":"published","published":"2025-09-06T19:15:38.533Z","modified":"2026-09-01T20:05:55.093303163Z","cvss":[{"version":"4.0","score":9.4,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical"}],"updated_at":"2026-11-02T15:45:47.697959Z"},{"id":"GHSA-wx3r-v6h7-frjp","title":"internetarchive Vulnerable to Directory Traversal in File.download()","description":"### Impact\n**What kind of vulnerability is it?**\nThis is a **Critical** severity directory traversal (path traversal) vulnerability in the `File.download()` method of the `internetarchive` library.\n\n**Who is impacted?**\nAll users of the `internetarchive` library versions `\u003c 5.5.1` are impacted. The vulnerability is particularly critical for users on **Windows systems**, but all operating systems are affected.\n\n**Description of the vulnerability:**\nThe vulnerability existed because the `file.download()` method did 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.\n\n**Potential Impact:**\nAn 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.\n\n### Patches\n**Has the problem been patched?**\nYes, the problem has been patched.\n\n**What versions should users upgrade to?**\nUsers must upgrade to version **5.5.1** or later.\n\n### Workarounds\nIs there a way for users to fix or remediate the vulnerability without upgrading?\nThere is no direct workaround that does not involve upgrading the library. The vulnerability is in the core logic of the file download process.\n\nThe only alternative for users who absolutely cannot upgrade is to implement their own custom download function that:\n\n1. Manually sanitizes all filenames using a robust method.\n2. Validates that the resolved absolute path of the download target is within the intended directory before writing any files.\n\nHowever, this essentially re-implements the fix and is not recommended. Upgrading to the patched version is the only safe and supported solution.\n\n### References\n\n- [Release Notes for v5.5.1](https://github.com/jjjake/internetarchive/releases/tag/v5.5.1)\n- [Commit with the fix](https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2)\n- **CVE Identifier:**  CVE-2025-58438","status":"published","published":"2025-09-05T21:00:42Z","modified":"2026-10-27T17:30:37.974244994Z","cvss":[{"version":"4.0","score":9.4,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"PYSEC-2026-357","title":"internetarchive Vulnerable to Directory Traversal in File.download()","description":"### Impact\n**What kind of vulnerability is it?**\nThis is a **Critical** severity directory traversal (path traversal) vulnerability in the `File.download()` method of the `internetarchive` library.\n\n**Who is impacted?**\nAll users of the `internetarchive` library versions `\u003c 5.5.1` are impacted. The vulnerability is particularly critical for users on **Windows systems**, but all operating systems are affected.\n\n**Description of the vulnerability:**\nThe vulnerability existed because the `file.download()` method did 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.\n\n**Potential Impact:**\nAn 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.\n\n### Patches\n**Has the problem been patched?**\nYes, the problem has been patched.\n\n**What versions should users upgrade to?**\nUsers must upgrade to version **5.5.1** or later.\n\n### Workarounds\nIs there a way for users to fix or remediate the vulnerability without upgrading?\n There is no direct workaround that does not involve upgrading the library. The vulnerability is in the core logic of the file download process.\n\nThe only alternative for users who absolutely cannot upgrade is to implement their own custom download function that:\n\n1. Manually sanitizes all filenames using a robust method.\n2. Validates that the resolved absolute path of the download target is within the intended directory before writing any files.\n\nHowever, this essentially re-implements the fix and is not recommended. Upgrading to the patched version is the only safe and supported solution.\n\n### References\n\n- [Release Notes for v5.5.1](https://github.com/jjjake/internetarchive/releases/tag/v5.5.1)\n - [Commit with the fix](https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2)\n - **CVE Identifier:**  CVE-2025-58438","status":"published","published":"2026-06-29T11:50:37.387123Z","modified":"2026-07-13T16:15:26.900634995Z","cvss":[{"version":"4.0","score":9.4,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical"}],"updated_at":"2026-11-02T15:52:56.847083Z"},{"id":"UBUNTU-CVE-2025-58438","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.","status":"published","published":"2025-09-06T19:15:00Z","modified":"2026-02-04T07:39:30.300139Z","cvss":[{"version":"4.0","score":9.4,"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","level":"critical"}],"updated_at":"2026-11-02T16:55:50.817402Z"},{"id":"DLA-4314-1","title":"python-internetarchive - security update","status":"published","published":"2025-09-30T00:00:00Z","modified":"2025-09-30T00:00:00Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"DSA-6035-1","title":"python-internetarchive - security update","status":"published","published":"2025-10-23T00:00:00Z","modified":"2025-10-23T20:33:01.884306Z","updated_at":"2026-11-02T15:46:18.296714Z"},{"id":"USN-7989-1","title":"python-internetarchive vulnerability","description":"Pengo Wray discovered that The Internet Archive Python Library incorrectly\nhandled certain file paths when downloading files. An attacker could\npossibly use this issue to write files to arbitrary locations on the file\nsystem.","status":"published","published":"2026-02-02T02:41:26Z","modified":"2026-04-27T18:34:11.73062Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
