cve.bz

CVE-2026-25645 python requests: Insecure Temporary File

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in python requests. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in requests 2.33.0.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.3% (up from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-03-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-25645 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-25645?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-25645?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-25645 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:requestsbefore 2.33.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gc5v-m9x4-r6x2PyPIrequests<2.33.02.33.0
PYSEC-2026-2275PyPIrequests<2.33.02.33.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13requestsno fix listedDEBIAN-CVE-2026-25645
Debian14requests2.34.2-1DEBIAN-CVE-2026-25645
Ubuntu22.04:LTSrequests2.25.1+dfsg-2ubuntu0.4UBUNTU-CVE-2026-25645 USN-8825-1
Ubuntu24.04:LTSrequests2.31.0+dfsg-1ubuntu1.2UBUNTU-CVE-2026-25645 USN-8825-1
Ubuntu25.10requests, python-pipno fix listedUBUNTU-CVE-2026-25645
Ubuntu26.04:LTSrequests2.32.5+dfsg-1ubuntu1.1UBUNTU-CVE-2026-25645 USN-8825-1
Ubuntu26.10, Pro:14.04:LTS, Pro:16.04:LTS and 5 morepython-pipno fix listedUBUNTU-CVE-2026-25645
UbuntuPro:20.04:LTSrequests2.22.0-2ubuntu1.1+esm2UBUNTU-CVE-2026-25645 USN-8825-1
SUSELinux Enterprise Module for Public Cloud 12, Linux Enterprise Server LTSS Extended Security 12 SP5python-requests2.24.0-8.26.1SUSE-SU-2026:1218-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-requests2.32.4-160000.3.1SUSE-SU-2026:22091-1
SUSELinux Micro 6.0python-requests2.32.3-3.1SUSE-SU-2026:21063-1
SUSELinux Micro 6.1python-requests2.32.4-slfo.1.1_2.1SUSE-SU-2026:21036-1
SUSELinux Micro 6.2python-requests2.32.4-160000.3.1SUSE-SU-2026:22055-1
openSUSELeap 16.0python-requests2.32.4-160000.3.1openSUSE-SU-2026:20926-1
openSUSETumbleweedpython-requests2.33.0-1.1openSUSE-SU-2026:10455-1
Alpinev3.20, v3.21, v3.22 and 2 morepy3-requests2.33.1-r0ALPINE-CVE-2026-25645
Azure Linux3python-requests2.31.0-4AZL-80996
Alpaquita23py3-requests2.28.1-r5BELL-CVE-2026-25645
Alpaquita25py3-requests2.32.5-r1BELL-CVE-2026-25645
Alpaquitastreampy3-requests2.33.1-r0BELL-CVE-2026-25645

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.4rhaii/model-opt-cuda-rhel9:1787151832Fixed 2026-08-20RHSA-2026:57383
Red Hat Enterprise Linux AI 3.4rhelai3/disk-image-cuda-rhel9:1787310717Fixed 2026-08-24RHSA-2026:59144
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-aws-cuda-rhel9:1787253912Fixed 2026-08-24RHSA-2026:59151
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-azure-cuda-rhel9:1787253989Fixed 2026-08-24RHSA-2026:59151
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-cuda-rhel9:1787243961Fixed 2026-08-24RHSA-2026:59151
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-gcp-cuda-rhel9:1787253774Fixed 2026-08-24RHSA-2026:59151
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9:1786705347Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9-operator:1786706101Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/mcg-core-rhel9:1786705558Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/mcg-rhel9-operator:1786705646Fixed 2026-08-18RHSA-2026:56431
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/bitwarden-sdk-server-rhel9Fix deferred
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-operator-bundleFix deferred
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-operator-rhel9Fix deferred
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-rhel9Fix deferred
Lightspeed Corelightspeed-core/dataverse-exporter-rhel9Fix deferred
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Lightspeed Corelightspeed-core/rag-tool-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-curator5-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-rhel8-operatorFix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorFix deferred
168 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-25645.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON