{"id":"CVE-2025-58438","published":"2025-09-06T18:45:55Z","modified":"2025-11-03T18:13:54Z","title":"internetarchive is vulnerable to Directory Traversal through file downloads","vendor":"jjjake","product":"internetarchive","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01602,"percentile":0.76416,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2","tags":["x_refsource_MISC"]},{"url":"https://github.com/jjjake/internetarchive/releases/tag/v5.5.1","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00030.html","tags":[]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":15.28},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"jjjake","affectedVersions":[{"vendor":"jjjake","product":"internetarchive","versions":["< 5.5.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-09-08T17:57:59.088902Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"internetarchive","vulnerableRanges":["<5.5.1"],"patched":["5.5.1"],"from":["GHSA-wx3r-v6h7-frjp","PYSEC-2026-357"],"provenance":"source"}],"summary":{"text":"A directory traversal flaw in the File.download() method of the internetarchive Python library and command-line interface, in versions 5.5.0 and below, allows a crafted filename to bypass path restrictions and cause a file to be written outside the intended target directory. An attacker can exploit this by supplying a malicious filename (for example, one containing traversal sequences), with user interaction required, to overwrite files elsewhere on the system, with the potential for denial of service, privilege escalation, or code execution depending on how the library is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:47:01Z"},"euvd":{"id":"EUVD-2025-27084","exploited":false,"provenance":"source"}}