Skip to content

Commit dfb1a18

Browse files
1 parent cbed092 commit dfb1a18

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-gc5v-m9x4-r6x2",
4+
"modified": "2026-03-25T16:56:28Z",
5+
"published": "2026-03-25T16:56:28Z",
6+
"aliases": [
7+
"CVE-2026-25645"
8+
],
9+
"summary": "Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function",
10+
"details": "### Impact\nThe `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.\n\n### Affected usages\n**Standard usage of the Requests library is not affected by this vulnerability.** Only applications that call `extract_zipped_paths()` directly are impacted.\n\n### Remediation\nUpgrade to at least Requests 2.33.0, where the library now extracts files to a non-deterministic location.\n\nIf developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "requests"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "2.33.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7"
46+
},
47+
{
48+
"type": "PACKAGE",
49+
"url": "https://github.com/psf/requests"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/psf/requests/releases/tag/v2.33.0"
54+
}
55+
],
56+
"database_specific": {
57+
"cwe_ids": [
58+
"CWE-377"
59+
],
60+
"severity": "MODERATE",
61+
"github_reviewed": true,
62+
"github_reviewed_at": "2026-03-25T16:56:28Z",
63+
"nvd_published_at": null
64+
}
65+
}

0 commit comments

Comments
 (0)