CVE-2025-58438
internetarchive is vulnerable to Directory Traversal through file downloads
Reported by github_m · Published September 6, 2025
internetarchive is fixed in 5.5.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| internetarchive | PyPI | 5.5.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| jjjake | internetarchive | < 5.5.1 |
| jjjake | internetarchive | 0 |
| PyPI | internetarchive | 0 |
Timeline
- Sep 5, 2025 CVE Published
- Sep 6, 2025 PoC Published (2 in total, the first dated here)
- Sep 7, 2025 EPSS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 10, 2026 Security Advisory
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-58438
vulnetix vdb fixes CVE-2025-58438
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-58438/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp x_refsource_CONFIRM
- https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2 x_refsource_MISC
- https://github.com/jjjake/internetarchive/releases/tag/v5.5.1 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-58438 advisory
- https://github.com/advisories/GHSA-wx3r-v6h7-frjp advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/internetarchive/PYSEC-2026-357.yaml advisory
- https://pypi.org/project/internetarchive url
- https://lists.debian.org/debian-lts-announce/2025/09/msg00030.html url
- https://github.com/jjjake/internetarchive url