CVE-2026-25645: psf requests · Insecure Temporary File
Affects psf requestsSource CVE Database V5
Not known to be exploited · CVSS 4.4 Medium : upgrade to 2.33.0 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.33.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade psf requests to 2.33.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| psfrequests | Affected
| Fixed in
|
PyPIrequestspkg:pypi/requestsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, organizations should upgrade the Requests library to version 2.33.0 or later, where the issue is patched. For environments where immediate upgrade is not feasible, implement strict access controls on the system's temporary directories to prevent untrusted users from creating or modifying files such as /tmp/cacert.pem. Use filesystem permissions and mount options like noexec and nodev on /tmp to reduce risk. Employ containerization or sandboxing to isolate processes using Requests from untrusted local users. Additionally, monitor and audit /tmp for unexpected files or changes to certificate bundles. Developers should avoid running Requests-based applications with elevated privileges unnecessarily and consider using alternative certificate loading mechanisms that do not rely on temporary file extraction. Finally, educate local users about the risks of placing files in shared temporary directories and enforce policies to restrict such behavior.
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.