CVE-2026-25645
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-03-25
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.2 %
higher than 8 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| requests (PyPI) | < 2.33.0 | Affected | |
| Python | Requests | < 2.33.0 | Affected |
Weakness type
-
CWE-377: DEPRECATED: Insecure Temporary File
This entry has been deprecated. It was focused only on the affected resource (temporary file) and not the behavior or mistake that produced the insecure temporary file, which caused confusion and incorrect mappings.
References
- https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
- https://github.com/psf/requests/releases/tag/v2.33.0
- https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
Related at Berigo
Articles
-
An unauthenticated request could read files off a GitLab server
Same product
2026-09-26
On 10 September 2026 GitLab patched a CVSS 10.0 flaw that, under certain conditions, let an unauthenticated user read files from the server. A day la…
-
The Netherlands proposes a law widening intelligence service powers
Same product
2026-09-03
The Dutch government presented a bill on 28 August 2026 that gives the intelligence services AIVD and MIVD greater freedom of action, according to Du…
-
A fake CAPTCHA gets the user to open a tunnel into the network
Same product
2026-09-01
Microsoft has tracked the TerminalFix campaign, in which compromised websites show a fake Cloudflare CAPTCHA and ask visitors to paste a command into…
-
Four flaws in the ServiceNow AI Platform need no login to exploit
Same product
2026-09-01
ServiceNow has fixed four vulnerabilities in its AI Platform, and three of them carry the maximum score of 10.0. All four can be exploited remotely w…
Services
-
DPO as a Service
Berigo offers DPO as a Service, an independent data protection officer function that meets the requirements of GDPR Articles 37 to 39, without the ne…
-
Establish documented GDPR compliance and privacy governance
Practical GDPR compliance and a privacy information management system under ISO/IEC 27701. From a bounded gap assessment to full implementation and c…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.