Vulnerabilities

CVE-2026-25645

Medium 5.5 CVSS 3.1

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

Related at Berigo

Articles

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.

Check your asset list Browse all vulnerabilities