CVE-2026-25645Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
A medium-severity vulnerability reachable with local access, needing low privileges and no user interaction. EPSS estimates a 0.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.2%
- percentile 8%
- Fix
- Named by a source
- CVE published 25 Mar 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.2% (+0) · No user interaction (+5)
Immediate actions
- requests (PyPI): upgrade to 2.33.0 or later on your release line.
- Patch: https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
- Advisory: https://github.com/psf/requests/releases/tag/v2.33.0
- Advisory: https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-25645
Who should check
requests (PyPI) pkg:pypi/requests
- Affected< 2.33.0Fixed in2.33.0OSV (PYSEC-2026-2275)
psf requests product:psf/requests
- Affected< 2.33.0Affected range ends before2.33.0as published by CNA (CVE List)
python requests product:python/requests
- Affected< 2.33.0Affected range ends before2.33.0as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.5 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- local
- Attack complexity
- low
- Privileges required
- low
- User interaction
- none
- Weakness
- CWE-377
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 25 Mar 2026Published
References
- patchhttps://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
- advisoryhttps://github.com/psf/requests/releases/tag/v2.33.0
- advisoryhttps://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-25645
- otherhttps://github.com/psf/requests
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-25645 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-gc5v-m9x4-r6x2 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-2275 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 35 min ago · osv 35 min ago · nvd 4 min ago · epss 35 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-gc5v-m9x4-r6x2, PYSEC-2026-2275