CVE-2025-58438 Details
Description
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.
A directory traversal vulnerability has been identified in the internetarchive library, specifically in the File.download() method, for versions through 5.5.0. The vulnerability arises because the method fails to properly sanitize user-supplied filenames or validate the final download path. This oversight allows maliciously crafted filenames to include path traversal sequences or illegal characters, potentially leading to files being written outside the intended target directory. As a result, an attacker could overwrite critical system or application configuration files, causing a denial of service, privilege escalation, or remote code execution, depending on the library's usage context. While all operating systems are affected, the vulnerability is especially critical for Windows users.
Users are advised to upgrade to version 5.5.1 or later, which addresses the vulnerability by introducing automatic filename sanitization, path resolution checks to block directory traversal attacks, and warnings when filenames are sanitized. For those unable to upgrade, implementing a custom download function that sanitizes filenames and validates download paths can serve as a temporary workaround.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 6, 2025CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jjjake internetarchive | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 6, 2025 | New CVE Received | [email protected] |
Volerion