Bug 2451408 (CVE-2026-25645) - CVE-2026-25645 requests: Requests: Security bypass due to predictable temporary file creation
Summary: CVE-2026-25645 requests: Requests: Security bypass due to predictable tempora...
Keywords:
Status: NEW
Alias: CVE-2026-25645
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2452324 2452325 2452326 2452327 2452328
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-25 18:02 UTC by OSIDB Bzimport
Modified: 2026-03-27 16:24 UTC (History)
118 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-03-25 18:02:22 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.