{"id":"CVE-2026-25645","published":"2026-03-25T17:02:48Z","modified":"2026-03-25T22:48:33Z","title":"Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function","vendor":"psf","product":"requests","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00306,"percentile":0.2379,"provenance":"source"},"cwes":[{"id":"CWE-377","name":"Insecure Temporary File"}],"references":[{"url":"https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7","tags":["x_refsource_MISC"]},{"url":"https://github.com/psf/requests/releases/tag/v2.33.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":4.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.08}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-11-16","earliestUrl":"https://github.com/Jaycelation/CVE-2026-25645","repos":[{"name":"Jaycelation/CVE-2026-25645","url":"https://github.com/Jaycelation/CVE-2026-25645","stars":0,"created":"2025-11-16"}]},"first":{"date":"2025-11-16","source":"PoC-in-GitHub","url":"https://github.com/Jaycelation/CVE-2026-25645"},"provenance":"source"},"vendorSlug":"psf","affectedVersions":[{"vendor":"psf","product":"requests","versions":["< 2.33.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-25T20:09:33.855806Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"requests","vulnerableRanges":["<2.33.0"],"patched":["2.33.0"],"from":["GHSA-gc5v-m9x4-r6x2","PYSEC-2026-2275"],"provenance":"source"}],"summary":{"text":"The Requests HTTP library (psf/requests) has an insecure temporary file reuse flaw in its extract_zipped_paths() utility function, which extracts zip archive contents to a predictable filename in the system temporary directory and reuses any existing file there without validation. A local attacker with write access to the temp directory who pre-creates a malicious file can have it loaded in place of the legitimate one, but only applications that call extract_zipped_paths() directly are affected and the attack requires local access, a low-privilege account, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:10Z"},"euvd":{"id":"EUVD-2026-15754","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-psf-requests-cve-2024-47081","parents":[{"from":"CVE-2024-47081","to":"CVE-2026-25645","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:requests","fromFixed":"2.32.4","toFixed":"2.33.0","daysApart":289},{"kind":"same-code","provenance":"machine","files":["src/requests/utils.py"],"commits":["https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef","https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-32681","published":"2023-05-26","fixed":"2.31.0","kev":false},{"cve":"CVE-2024-35195","published":"2024-05-20","fixed":"2.32.0","kev":false},{"cve":"CVE-2024-47081","published":"2025-06-09","fixed":"2.32.4","kev":false},{"cve":"CVE-2026-25645","published":"2026-03-25","fixed":"2.33.0","kev":false}],"package":"PyPI:requests"}}