internetarchive is vulnerable to Directory Traversal through file downloads
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jjjake | internetarchive | before 5.5.1 | 5.5.1 | Patch available | CNA |
| — | internetarchive (PyPI) | before 5.5.1 | 5.5.1 | Patch available | GHSA-wx3r-v6h7-frjp |
- internetarchive Vendorjjjake Affected before 5.5.1 Fixed in 5.5.1 Patch available CNA
- internetarchive (PyPI) Vendor— Affected before 5.5.1 Fixed in 5.5.1 Patch available GHSA-wx3r-v6h7-frjp
Remediation
- Fix · CNA internetarchive (jjjake) Fixed in 5.5.1
- Fix · GHSA-wx3r-v6h7-frjp internetarchive (PyPI) Fixed in 5.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58438
- 2026-10-03 Alias added: GHSA-wx3r-v6h7-frjp
References
Other 7
- https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp
- https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2
- https://github.com/jjjake/internetarchive/releases/tag/v5.5.1
- https://github.com/jjjake/internetarchive
- https://github.com/pypa/advisory-database/tree/main/vulns/internetarchive/PYSEC-2026-357.yaml
- https://lists.debian.org/debian-lts-announce/2025/09/msg00030.html
- https://pypi.org/project/internetarchive
Sources
- CVE-2025-58438 · CVE Program
- CVE-2025-58438 · NVD
- FIRST EPSS
- GHSA-wx3r-v6h7-frjp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences