CVEfocus › CVE database › CVE-2025-58438

CVE-2025-58438internetarchive is vulnerable to Directory Traversal through file downloads

CVSS 9.4 CriticalEPSS 1.9% (higher than 80% of CVEs)Published 2025-09-06Updated 2025-11-03Assigner: GitHub_M

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.

CWE-22

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

6Fixed
2Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04python-internetarchiveNot affected
vulnerable_code_not_present
Ubuntu 25.10python-internetarchiveFixed5.4.0-1ubuntu0.1UBUNTU-CVE-2025-58438
Ubuntu 24.04python-internetarchiveFix pending3.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-58438
Ubuntu 22.04python-internetarchiveFixed1.9.9-1ubuntu0.1UBUNTU-CVE-2025-58438
Ubuntu 20.04python-internetarchiveFix pending1.9.0-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-58438
Debian 14python-internetarchiveFixed5.5.1-1DEBIAN-CVE-2025-58438
Debian 13python-internetarchiveFixed5.4.0-2~deb13u1DEBIAN-CVE-2025-58438
Debian 12python-internetarchiveFixed3.3.0-2~deb12u1DEBIAN-CVE-2025-58438
PyPI libraryinternetarchiveFixed5.5.1PYSEC-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.

References

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.