Skip to content
Fencer Intel
critical 9.4

CVE-2025-58438 json

internetarchive is vulnerable to Directory Traversal through file downloads

published last yr. modified 13d ago also GHSA-wx3r-v6h7-frjp , PYSEC-2026-357 , EUVD-2025-27084

cvss
9.4
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

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.

Patch / fix

  • pypi internetarchive 5.5.1
  • python-internetarchive Debian 12 3.3.0-2~deb12u1
  • python-internetarchive Debian 13 5.4.0-2~deb13u1
  • python-internetarchive Debian 14 5.5.1-1

debian advisories DEBIAN-CVE-2025-58438

  • python-internetarchive Ubuntu 22.04 LTS 1.9.9-1ubuntu0.1
  • python-internetarchive Ubuntu 25.10 5.4.0-1ubuntu0.1
  • python-internetarchive Ubuntu Pro 20.04 LTS 1.9.0-3ubuntu0.1~esm1
  • python-internetarchive Ubuntu Pro 24.04 LTS 3.5.0-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-58438

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2025-58438 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
last yr.

Exploit prediction

1.60% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 4.0 9.4 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
CNA 4.0 9.4 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
pypi internetarchive
<5.5.1
5.5.1

Affected products

  • jjjake internetarchive

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.