CVE-2026-25645
Requests is a HTTP library. Prior to version 2.33.0, the function …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
- github.com/psf/requests/releases/tag/v2.33.0
- github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
- github.com/advisories/GHSA-gc5v-m9x4-r6x2
- nvd.nist.gov/vuln/detail/CVE-2026-25645
- nvd.nist.gov/vuln/detail/CVE-2026-25645
- cve.org/CVERecord?id=CVE-2026-25645
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.