CVE-2026-25645

CVE-2026-25645 is a medium-severity vulnerability in Python Requests with a CVSS 3.x base score of 4.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-377.

Key facts

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.

Frequently asked questions

What is CVE-2026-25645?
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.
How severe is CVE-2026-25645?
CVE-2026-25645 has a CVSS 3.x base score of 4.4, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and user interaction. Impact on confidentiality is none, integrity high, and availability none.
Is CVE-2026-25645 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (8th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-25645?
CVE-2026-25645 affects Python Requests. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-25645?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2026-25645 have an EU (EUVD) identifier?
Yes. CVE-2026-25645 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-15754.
When was CVE-2026-25645 published?
CVE-2026-25645 was published on 2026-03-25 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Python Requests

All CVEs affecting Python Requests →

Other CWE-377 (Insecure Temporary File) vulnerabilities

Browse all CWE-377 (Insecure Temporary File) vulnerabilities →