Insecure Temporary File in Requests - CVE-2026-25645

 

Insecure Temporary File in Requests - CVE-2026-25645

Published: July 2, 2026


Vulnerability identifier: #VU136685
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-25645
CWE-ID: CWE-377
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Python.org
Affected software:
Requests

Detailed vulnerability description

The vulnerability allows a local user to overwrite or substitute extracted files.

The vulnerability exists due to insecure temporary file handling in requests.utils.extract_zipped_paths() when extracting files from zip archives into the system temporary directory. A local user can pre-create a malicious file to overwrite or substitute extracted files.

Only applications that call extract_zipped_paths() directly are affected. User interaction is required to process a crafted zip archive.


How to mitigate CVE-2026-25645

Install security update from vendor's website.

Sources