CVE-2025-58438internetarchive 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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | python-internetarchive | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | python-internetarchive | Fixed | 5.4.0-1ubuntu0.1 | UBUNTU-CVE-2025-58438 |
| Ubuntu 24.04 | python-internetarchive | Fix pending | 3.5.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-58438 |
| Ubuntu 22.04 | python-internetarchive | Fixed | 1.9.9-1ubuntu0.1 | UBUNTU-CVE-2025-58438 |
| Ubuntu 20.04 | python-internetarchive | Fix pending | 1.9.0-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-58438 |
| Debian 14 | python-internetarchive | Fixed | 5.5.1-1 | DEBIAN-CVE-2025-58438 |
| Debian 13 | python-internetarchive | Fixed | 5.4.0-2~deb13u1 | DEBIAN-CVE-2025-58438 |
| Debian 12 | python-internetarchive | Fixed | 3.3.0-2~deb12u1 | DEBIAN-CVE-2025-58438 |
| PyPI library | internetarchive | Fixed | 5.5.1 | PYSEC-2026-357 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jjjake internetarchive: affected: < 5.5.1
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.