CVE-2026-25645 Details
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.
A vulnerability exists in the Requests library prior to version 2.33.0, specifically in the `requests.utils.extract_zipped_paths()` function. This function, used by `HTTPAdapter.cert_verify()` to load the CA bundle, often from the `certifi` package's zipapp structure, extracts files from zip archives to the system's temporary directory using a predictable filename. If the file already exists, it is reused without proper validation, creating an opportunity for local attackers to pre-insert a malicious CA bundle file that could be loaded by an application with potentially higher privileges.
Users are advised to upgrade to Requests version 2.33.0 or later, where this vulnerability has been addressed. If an upgrade is not possible, set the `TMPDIR` environment variable to a directory with restricted write access.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-377 | Insecure Temporary File | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python requests | < 2.33.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 30, 2026 | Initial Analysis | [email protected] |
| Mar 25, 2026 | CVE Modified | [email protected] |
| Mar 25, 2026 | New CVE Received | [email protected] |