CVE-2023-6597
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
AlmaLinux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | python3.11-libs-3.11.7-1.el9_4.1.aarch64.rpm |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 7.3.13+dfsg-1 |
| sid | Fixed | 7.3.13+dfsg-1 |
| forky | Fixed | 7.3.13+dfsg-1 |
| bullseye | Fixed | 7.3.5+dfsg-2+deb11u3 |
| bookworm | Fixed | 7.3.11+dfsg-2+deb12u2 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
References
- https://access.redhat.com/errata/RHSA-2024:4077
- https://access.redhat.com/errata/RHSA-2024:4078
- https://errata.rockylinux.org/RLSA-2024:3466
- https://errata.rockylinux.org/RLSA-2024:3347
- https://www.suse.com/security/cve/CVE-2023-6597.html
- https://errata.rockylinux.org/RLSA-2024:4077
- https://errata.rockylinux.org/RLSA-2024:4078
- https://security-tracker.debian.org/tracker/CVE-2023-6597
- https://access.redhat.com/errata/RHSA-2024:4058
- https://bugzilla.redhat.com/2276518
- https://bugzilla.redhat.com/2276525
- https://errata.almalinux.org/8/ALSA-2024-4058.html
- https://access.redhat.com/errata/RHSA-2024:3347
- https://errata.almalinux.org/8/ALSA-2024-3347.html
- https://access.redhat.com/errata/RHSA-2024:3466
- https://bugzilla.redhat.com/2274779
- https://errata.almalinux.org/8/ALSA-2024-3466.html
- https://errata.almalinux.org/9/ALSA-2024-4077.html
- https://errata.almalinux.org/9/ALSA-2024-4078.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.