CVE-2025-58438
Python vulnerability analysis and mitigation

Overview

CVE-2025-58438 is a critical directory traversal vulnerability discovered in the File.download() method of the internetarchive Python library versions 5.5.0 and below. The vulnerability was disclosed on September 5, 2025, affecting all operating systems, with Windows systems being particularly vulnerable. The issue stems from improper sanitization of user-supplied filenames and inadequate validation of download paths (GitHub Advisory).

Technical details

The vulnerability exists in the File.download() method which fails to properly sanitize user-supplied filenames and validate final download paths. Maliciously crafted filenames containing path traversal sequences (e.g., ../../../../windows/system32/file.txt) or illegal characters could cause files to be written outside the intended target directory. The vulnerability has received a CVSS 4.0 Base Score of 9.4 CRITICAL with vector string 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 (NVD).

Impact

The vulnerability could allow attackers to overwrite critical system files or application configuration files, potentially leading to denial of service, privilege escalation, or remote code execution, depending on the context in which the library is used. The impact is particularly severe for Windows systems, though all operating systems are affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 5.5.1 of the internetarchive library. Users are strongly urged to upgrade immediately to this version. For users who cannot upgrade, there is no direct workaround, though they could implement their own custom download function with proper filename sanitization and path validation. However, upgrading to the patched version is the only safe and supported solution (GitHub Release).

Community reactions

The security community has responded promptly to the disclosure, with the fix being implemented and released quickly. The GitHub release of version 5.5.1 has received positive reactions from the community, including thumbs up, heart, and eyes reactions, indicating appreciation for the quick security response (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-57817HIGH8.6
  • PythonPython
  • ethyca-fides
NoYesSep 08, 2025
CVE-2025-58446MEDIUM6.9
  • PythonPython
  • xgrammar
NoYesSep 06, 2025
CVE-2025-57816MEDIUM6.3
  • PythonPython
  • ethyca-fides
NoYesSep 08, 2025
CVE-2025-57815LOW1.7
  • PythonPython
  • ethyca-fides
NoYesSep 08, 2025
CVE-2025-57766LOW1.7
  • PythonPython
  • ethyca-fides
NoYesSep 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management