CVE-2023-6597
Reported by psf · Published March 19, 2024
An issue was found in the CPython `tempfile.TemporaryDirectory` class affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The tempfile.TemporaryDirectory class would dereference symlinks during cleanup of permissions-related errors. This means users which can run privileged programs are potentially able to modify permissions of files referenced by symlinks in some circumstances.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| aws-cli-v2 | Wolfi | 2.15.35-r0 |
| python3.11-test | Amazon Linux | 3.11.6-1.amzn2023.0.3 |
| python3-devel | Amazon Linux | 3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6 |
| python3-idle | Amazon Linux | 3.9.16-1.amzn2023.0.8 |
| python3 | Alpine | 3.10.14-r0 |
| python | Bitnami | 3.12.1, 3.11.8, 3.10.14, 3.9.19, 3.8.19 |
| python3.11-idle | Amazon Linux | 3.11.6-1.amzn2023.0.3 |
| python3-tkinter | Amazon Linux | 3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6 |
| python3-debug | Amazon Linux | 3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6 |
| python-3.12 | Chainguard | 3.12.2-r0 |
| python-3.11 | Wolfi | 3.11.8-r0 |
| python-3.12 | Wolfi | 3.12.2-r0 |
36 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.9.0, 3.10.0 |
| wolfi | aws-cli-v2 | 0 |
| amazon:2023 | python3.11-test | 0 |
| amazon:2 | python3-devel | 0 |
| amazon:2023 | python3-idle | 0 |
| alpine | python3 | 0 |
| amazon:2023 | python3.11-idle | 0 |
| amazon:2 | python3-tkinter | 0 |
| amazon:2023 | python3-tkinter | 0 |
| Python Software Foundation | CPython | |
| amazon:2023 | python3-debug | 0 |
| chainguard | python-3.12 | 0 |
| wolfi | python-3.11 | 0 |
| wolfi | python-3.12 | 0 |
| amazon:2023 | python3 | 0 |
| chainguard | python-3.11 | 0 |
| amazon:2 | python3-debug | 0 |
| wolfi | python-3.10 | 0 |
| amazon:2 | python3-test | 0 |
| Python Software Foundation | CPython | 3.10.0, 3.11.0, 3.12.0 |
…and 17 more
Timeline
- Feb 8, 2024 PoC Published
- Mar 19, 2024 CVE Published
- Mar 20, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (10 in total, the first dated here)
- Jun 2, 2026 Security Advisory (46 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (40 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-6597
vulnetix vdb fixes CVE-2023-6597
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-2023-6597/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- patch
- patch
- patch
- patch
- patch
- patch
- issue-tracking
- vendor-advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html advisory
- https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html advisory