5.5
MEDIUM CVSS 3.1
CVE-2026-25645
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
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.

INFO

Published Date :

March 25, 2026, 5:16 p.m.

Last Modified :

March 30, 2026, 2:23 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-25645 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python requests
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Update requests library to version 2.33.0 or later to fix temporary file extraction vulnerability.
  • Update the requests library to version 2.33.0 or later.
  • Ensure temporary directories are not world-writable.
  • Avoid running applications with unnecessary privileges.
Public PoC/Exploit Available at Github

CVE-2026-25645 has a 9 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-25645.

URL Resource
https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 Patch
https://github.com/psf/requests/releases/tag/v2.33.0 Release Notes
https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2 Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-25645 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-25645 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Akamai Cloud migration evaluation - AWS Bookstore Demo

Makefile Dockerfile HTML Go Template Shell JavaScript Python HCL

Updated: 12 hours, 39 minutes ago
0 stars 0 fork 0 watcher
Born at : April 14, 2026, 12:05 p.m. This repo has been linked 12 different CVEs too.

None

Dockerfile Python

Updated: 1 week, 2 days ago
0 stars 0 fork 0 watcher
Born at : April 5, 2026, 9:55 p.m. This repo has been linked 6 different CVEs too.

None

Shell Dockerfile JavaScript HTML CSS Python

Updated: 6 hours, 50 minutes ago
0 stars 0 fork 0 watcher
Born at : April 2, 2026, 4:38 a.m. This repo has been linked 3 different CVEs too.

NotebookLM MCP CLI - Access NotebookLM via Claude with security fixes and FastMCP 1.0 compatibility

Python

Updated: 3 days, 22 hours ago
1 stars 0 fork 0 watcher
Born at : March 18, 2026, 5:07 a.m. This repo has been linked 4 different CVEs too.

MVidarr - The Music Video Management System

HTML Python Shell JavaScript CSS TypeScript Batchfile Dockerfile Mako Go Template

Updated: 5 days, 11 hours ago
40 stars 1 fork 1 watcher
Born at : July 24, 2025, 1:49 a.m. This repo has been linked 13 different CVEs too.

None

Dockerfile Python CSS JavaScript HTML Shell

Updated: 1 week, 4 days ago
1 stars 0 fork 0 watcher
Born at : July 19, 2025, 9:26 p.m. This repo has been linked 6 different CVEs too.

None

Dockerfile Python CSS JavaScript HTML Shell

Updated: 1 week, 4 days ago
1 stars 0 fork 0 watcher
Born at : July 19, 2025, 8:33 p.m. This repo has been linked 6 different CVEs too.

None

Dockerfile Python CSS JavaScript HTML Shell

Updated: 1 week, 4 days ago
1 stars 0 fork 0 watcher
Born at : July 19, 2025, 7:23 p.m. This repo has been linked 6 different CVEs too.

A powerful Discord bot and web interface to manage Docker containers remotely. This application bridges the gap between Discord and your Docker environment, allowing container monitoring and control directly through Discord channels.

Dockerfile Python HTML Shell JavaScript CSS

Updated: 1 week, 4 days ago
9 stars 0 fork 0 watcher
Born at : May 21, 2025, 7:10 p.m. This repo has been linked 6 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-25645 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-25645 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Mar. 30, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
    Added CPE Configuration OR *cpe:2.3:a:python:requests:*:*:*:*:*:*:*:* versions up to (excluding) 2.33.0
    Added Reference Type GitHub, Inc.: https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/psf/requests/releases/tag/v2.33.0 Types: Release Notes
    Added Reference Type GitHub, Inc.: https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2 Types: Vendor Advisory
  • CVE Modified by [email protected]

    Mar. 25, 2026

    Action Type Old Value New Value
    Changed Description Requests is a HTTP library. Prior to version 2.33.0, the function `requests.utils.extract_zipped_paths()` (which is used by `HTTPAdapter.cert_verify()` to load the CA bundle, often from the `certifi` package's zipapp structure) uses a predictable, non-unique filename (the basename of the file, e.g., `cacert.pem`) when attempting to extract files into the system's temporary directory (`/tmp`). The vulnerable logic performs a check to see if the target file already exists in `/tmp` and re-uses the existing file if found, instead of securely checking the file's content or ensuring atomic, unique extraction. This allows a Local Attacker to pre-create a malicious CA bundle file (e.g., `/tmp/cacert.pem`) before a vulnerable application (running with potentially higher privileges) initializes the `requests` library. Version 2.33.0 contains a patch. 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.
  • New CVE Received by [email protected]

    Mar. 25, 2026

    Action Type Old Value New Value
    Added Description Requests is a HTTP library. Prior to version 2.33.0, the function `requests.utils.extract_zipped_paths()` (which is used by `HTTPAdapter.cert_verify()` to load the CA bundle, often from the `certifi` package's zipapp structure) uses a predictable, non-unique filename (the basename of the file, e.g., `cacert.pem`) when attempting to extract files into the system's temporary directory (`/tmp`). The vulnerable logic performs a check to see if the target file already exists in `/tmp` and re-uses the existing file if found, instead of securely checking the file's content or ensuring atomic, unique extraction. This allows a Local Attacker to pre-create a malicious CA bundle file (e.g., `/tmp/cacert.pem`) before a vulnerable application (running with potentially higher privileges) initializes the `requests` library. Version 2.33.0 contains a patch.
    Added CVSS V3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
    Added CWE CWE-377
    Added Reference https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
    Added Reference https://github.com/psf/requests/releases/tag/v2.33.0
    Added Reference https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.