Cyber Resilience

CVE-2026-25645

Python Requests ≤ 2.33.0

Published
25 March 2026
Modified
30 March 2026
Patch / advisory
CVSS Score v3.1 4.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS Score 0.0018 8th percentile
Risk Priority 34 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-25645 is a medium-severity Insecure Temporary File (CWE-377) vulnerability in Python Requests. Its CVSS base score is 4.4 (Medium).

Operationally, ranked at the 8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2023-32681Same product: Python Requests
CVE-2023-33595Same vendor: Python
CVE-2026-4519Same vendor: Python
CVE-2026-44432Same vendor: Python
CVE-2026-55380Same vendor: Python
CVE-2025-50182Same vendor: Python
CVE-2026-59204Same vendor: Python
CVE-2026-59205Same vendor: Python
CVE-2026-32274Same vendor: Python
CVE-2026-5271Same vendor: Python

Affected Assets

python
requests
≤ 2.33.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

AC-3 enforces file-system access authorizations so that temporary files cannot be read or modified by unauthorized processes.

AC-6 reduces the privileges available to processes that create or access temporary files, limiting blast radius if a file is predictable or left readable.

SC-4 directly stops unauthorized information leakage through shared resources such as world-writable temporary directories.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require avoiding insecure temp-file creation patterns.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect insecure temporary files but does not prevent their creation.

prevents

Secure development life cycle mandates secure handling of temporary files during design and coding.

prevents

Application security requirements can specify secure temporary-file creation and access controls.

prevents

Secure system architecture principles discourage insecure temporary-file patterns but do not directly address them.

prevents

Secure coding standards explicitly require safe temporary-file APIs and permissions.

References