CVE-2026-25645
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
Reported by github_m · Published March 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| py3-cassandra-medusa | Chainguard | 0.28.0-r1 |
| prefect-fips | Chainguard | 3.6.23-r0 |
| datadog-agent-fips-7.74 | Chainguard | 7.74.1-r7 |
| superset-5.0 | Chainguard | 5.0.0-r22 |
| datadog-agent-7.75 | Wolfi | 7.75.4-r7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| psf | requests | < 2.33.0 |
| chainguard | py3-cassandra-medusa | 0 |
| chainguard | prefect-fips | 0 |
| chainguard | datadog-agent-fips-7.74 | 0 |
| chainguard | superset-5.0 | 0 |
| wolfi | datadog-agent-7.75 | 0 |
| chainguard | datadog-agent-7.77 | 0 |
| chainguard | datadog-agent-fips-7.72 | 0 |
| wolfi | datadog-agent-7.77 | 0 |
| chainguard | opal | 0 |
| chainguard | gitlab-cng-fips-18.9 | 0 |
| chainguard | nvidia-nsight-compute-13.2 | 0 |
| chainguard | jwt-tool | 0 |
| chainguard | prefect | 0 |
| chainguard | litellm | 0 |
| chainguard | graalvm-25 | 0 |
| wolfi | datadog-agent-7.74 | 0 |
| chainguard | k8s-sidecar | 0 |
| chainguard | ggshield | 0 |
| chainguard | dask-kubernetes | 0 |
…and 111 more
Timeline
- Mar 25, 2026 CVE Published
- Mar 25, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 29, 2026 Security Advisory (6 in total, the first dated here)
- Mar 30, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-25645
vulnetix vdb fixes CVE-2026-25645
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-25645/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2 x_refsource_CONFIRM
- https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 x_refsource_MISC
- https://github.com/psf/requests/releases/tag/v2.33.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-25645 advisory
- https://github.com/advisories/GHSA-gc5v-m9x4-r6x2 advisory
- https://github.com/psf/requests url