Jjjake internetarchive
internetarchive is vulnerable to Directory Traversal through file downloads
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.5.1
Fixed in 5.5.1
Mitigation
Upgrade internetarchive to 5.5.1 or later.
References
- Vendor advisory github.com/jjjake/internetarchive/security/adv…
- Patch github.com/jjjake/internetarchive/commit/cba2d…
- Release notes github.com/jjjake/internetarchive/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.