CVE-2025-58438

NameCVE-2025-58438
Descriptioninternetarchive 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1114635

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-internetarchive (PTS)bullseye1.9.9-1vulnerable
bookworm3.3.0-1vulnerable
forky, sid, trixie5.4.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-internetarchivesource(unstable)(unfixed)1114635

Notes

https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp
Merge commit: https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2 (v5.5.1)

Search for package or bug name: Reporting problems