Vulnerability · Published Mar 25, 2026 · Assigned by GitHub_M

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

Medium 4.4

In plain English

A medium-severity security flaw in requests from psf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 91.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-requests2.33.1-r0ALPINE-CVE-2026-25645
Alpine:v3.21py3-requests2.33.1-r0ALPINE-CVE-2026-25645
Alpine:v3.22py3-requests2.33.1-r0ALPINE-CVE-2026-25645
Alpine:v3.23py3-requests2.33.1-r0ALPINE-CVE-2026-25645
Alpine:v3.24py3-requests2.33.1-r0ALPINE-CVE-2026-25645
Debian:12requestsno fix listedDEBIAN-CVE-2026-25645
Debian:13requestsno fix listedDEBIAN-CVE-2026-25645
Debian:14requests2.34.2-1DEBIAN-CVE-2026-25645
PyPIrequests2.33.0GHSA-gc5v-m9x4-r6x2
PyPIrequests2.33.0PYSEC-2026-2275
Ubuntu:25.10python-pipno fix listedUBUNTU-CVE-2026-25645
Ubuntu:26.10python-pipno fix listedUBUNTU-CVE-2026-25645
Ubuntu:22.04:LTSrequests2.25.1+dfsg-2ubuntu0.4USN-8825-1
Ubuntu:22.04:LTSrequests2.25.1+dfsg-2ubuntu0.4UBUNTU-CVE-2026-25645
Ubuntu:24.04:LTSrequests2.31.0+dfsg-1ubuntu1.2UBUNTU-CVE-2026-25645
Ubuntu:24.04:LTSrequests2.31.0+dfsg-1ubuntu1.2USN-8825-1
Ubuntu:25.10requestsno fix listedUBUNTU-CVE-2026-25645
Ubuntu:26.04:LTSrequests2.32.5+dfsg-1ubuntu1.1USN-8825-1
Ubuntu:26.04:LTSrequests2.32.5+dfsg-1ubuntu1.1UBUNTU-CVE-2026-25645

Affected products (as reported)

VendorProductVersions
psf requests < 2.33.0

Weakness: CWE-377 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

References