# CVE-2026-25645: Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-03-25T16:56:28.000Z
- Modified: 2026-09-10T03:50:39.207Z
- Also known as: GHSA-gc5v-m9x4-r6x2, PYSEC-2026-2275
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- psf requests: < 2.33.0
- requests (PyPI): before 2.33.0
- python requests: before 2.33.0

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2> (advisory, vendor-advisory, web)
- <https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7> (fix, patch, web)
- <https://github.com/psf/requests/releases/tag/v2.33.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25645> (advisory)
- <https://github.com/psf/requests> (package)

## Sources

- CVE List: [CVE-2026-25645](https://www.cve.org/CVERecord?id=CVE-2026-25645), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-gc5v-m9x4-r6x2](https://github.com/advisories/GHSA-gc5v-m9x4-r6x2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25645](https://nvd.nist.gov/vuln/detail/CVE-2026-25645), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2275](https://osv.dev/vulnerability/PYSEC-2026-2275), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-25645 · Whole record: https://cve.day/CVE-2026-25645.json · Rebuilt by cve.day 2026-11-25T22:59:16.781Z
