CVE-2026-25645 in Python Requests
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 ac...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Python | Requests | < 2.33.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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 vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-25645 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-273567-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Published | 2026-03-25 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-377: CWE-377
Related attack patterns (CAPEC)
CAPEC-149 Explore for Predictable Temporary File Names via CWE-377
CAPEC-155 Screen Temporary Files for Sensitive Information via CWE-377
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2026-25645 affects the Requests library prior to version 2.33.0, where the `requests.utils.extract_zipped_paths()` function can be exploited by a local attacker with write access to the system's temporary directory to execute arbitrary code by pre-creating a malicious file.
A local attacker can exploit this vulnerability by creating a malicious file in the system's temporary directory before the `extract_zipped_paths()` function attempts to extract a zip archive. If the filename matches the predictable pattern used by the function, the malicious file will be used instead of the intended file from the archive.
Questions
What is CVE-2026-25645?
CVE-2026-25645 affects the Requests library prior to version 2.33.0, where the `requests.utils.extract_zipped_paths()` function can be exploited by a local attacker with write access to the system's temporary directory to execute arbitrary code by pre-creating a malicious file.
What is the CVSS score for CVE-2026-25645?
CVE-2026-25645 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.2%.
Is CVE-2026-25645 actively exploited?
No confirmed active exploitation of CVE-2026-25645 as of 2026-09-25.
How do I remediate CVE-2026-25645?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-25645?
CVE-2026-25645 affects Python Requests.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"Requests","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.