CVE-2026-25645Insecure Temporary File in Requests

Severity
5.5MEDIUMNVD
CNA4.4
EPSS
0.0%
top 99.81%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 25
Latest updateApr 6

Description

Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulner

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NExploitability: 1.8 | Impact: 3.6

Affected Packages3 packages

CVEListV5psf/requests< 2.33.0
NVDpython/requests< 2.33.0
PyPIpython/requests< 2.33.0

Patches

🔴Vulnerability Details

7
OSV
CVE-2026-25645: (Requests is a HTTP library2026-04-06
OSV
poetry-plugin-tweak-dependencies-version affected by CVE-2026-256452026-04-01
GHSA
poetry-plugin-tweak-dependencies-version affected by CVE-2026-256452026-04-01
OSV
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function2026-03-25
GHSA
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function2026-03-25

📋Vendor Advisories

3
Red Hat
requests: Requests: Security bypass due to predictable temporary file creation2026-03-25
Microsoft
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function2026-03-10
Debian
CVE-2026-25645: requests - Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-25645 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

3
Bugzilla
CVE-2026-25645 python3.15: Requests: Security bypass due to predictable temporary file creation [fedora-all]2026-03-27
Bugzilla
CVE-2026-25645 python3.6: Requests: Security bypass due to predictable temporary file creation [fedora-all]2026-03-27
Bugzilla
CVE-2026-25645 pypy: Requests: Security bypass due to predictable temporary file creation [fedora-all]2026-03-27
CVE-2026-25645 — Insecure Temporary File in Requests | cvebase