
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25645 is an insecure temporary file vulnerability (CWE-377) in the Python requests HTTP library affecting all versions prior to 2.33.0. The flaw resides in the requests.utils.extract_zipped_paths() utility function, which uses a predictable filename when extracting files from zip archives into the system temporary directory. It was disclosed on March 25, 2026, by reporter Jaycelation via the GitHub Security Advisory program (GitHub Advisory). The CVSS v3.1 base score is 4.4 (Moderate) per the official advisory, though NVD assigns 5.5 (Medium) (GitHub Advisory).
The root cause is classified as CWE-377 (Insecure Temporary File). In versions prior to 2.33.0, extract_zipped_paths() constructed the extraction path using os.path.join(tempfile.gettempdir(), member.split('/')[-1]) — a deterministic, predictable filename — and then checked whether the file already existed before writing; if it did, the existing file was reused without any integrity validation (GitHub Advisory). The fix in version 2.33.0 replaces this logic with tempfile.mkstemp(), which generates a non-deterministic temporary file path, eliminating the predictability (GitHub Commit). Exploitation requires local access to the system and write permissions to the temporary directory, and is only relevant to applications that explicitly call extract_zipped_paths() directly — standard use of the requests library is unaffected (GitHub Advisory).
A local attacker with write access to the system's temporary directory could pre-create a malicious file at the predictable path before the vulnerable application calls extract_zipped_paths(), causing the application to load the attacker-controlled file instead of the legitimate extracted content. The primary impact is on data integrity — confidentiality and availability are not affected. The scope is limited to applications that directly invoke the utility function, and there is no known path to remote code execution or lateral movement from this vulnerability alone (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.004% (0.000040), reflecting a very low probability of exploitation in the near term. No threat actor attribution has been reported.
requests library prior to 2.33.0 and explicitly calls requests.utils.extract_zipped_paths() with a zip archive containing files./tmp on Linux or %TEMP% on Windows).extract_zipped_paths() will use — it is derived from the last component of the zip member path (e.g., for a member certs/cacert.pem, the extracted path would be /tmp/cacert.pem).extract_zipped_paths(), write a malicious file to the predictable temporary path (e.g., echo 'malicious content' > /tmp/cacert.pem).extract_zipped_paths() — since the file already exists, the function skips writing and returns the path to the attacker-controlled file./tmp/, %TEMP%) matching the names of files typically extracted from zip archives used by the target application (e.g., cacert.pem or other certificate/data files).extract_zipped_paths(), indicating they were placed there before the extraction occurred.Upgrade the Python requests library to version 2.33.0 or later, where extract_zipped_paths() uses tempfile.mkstemp() to generate non-deterministic temporary file paths (GitHub Release). As an interim workaround for environments that cannot upgrade immediately, set the TMPDIR environment variable to a directory with restricted write access (accessible only to the application's user), preventing local attackers from pre-creating files at the predictable path (GitHub Advisory). Downstream products incorporating the vulnerable library — including IBM Maximo Application Suite, IBM Process Mining, IBM watsonx.data, IBM Guardium Data Security Center, IBM Security QRadar EDR, and OpenVPN Access Server — have released or are releasing their own patches; consult the respective vendor advisories for specific remediation guidance (IBM Advisory, OpenVPN Release Notes).
The vulnerability was reported by a researcher identified as Jaycelation and remediated by the requests maintainers nateprewitt and sigmavirus24 (GitHub Advisory). Multiple enterprise vendors including IBM and OpenVPN issued advisories acknowledging the impact on their products that bundle the requests library, reflecting broad downstream reach of the vulnerability (IBM Advisory, OpenVPN Release Notes). Community reaction has been measured, consistent with the vulnerability's moderate severity and limited exploitability scope.
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
python-pip
bionic (esm-infra)
requests
devel
requests
focal (esm-apps)
python-pip
focal (esm-infra)
requests: 2.22.0-2ubuntu1.1+esm2
jammy
requests: 2.25.1+dfsg-2ubuntu0.4
jammy (esm-apps)
python-pip
noble
requests: 2.31.0+dfsg-1ubuntu1.2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."