CVE-2023-6597
python3.7 - security update
7.8
HIGH
CVSS 3.1
EPSS 0.08%
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.
How to fix CVE-2023-6597
To remediate CVE-2023-6597, upgrade the affected package to a fixed version below.
- —upgrade to 3.10.14-r0 or later
- —upgrade to 3.8.19 or later
- —upgrade to 3.8.19 or later
- —upgrade to 3.8.19 or later
- —upgrade to 7.3.5+dfsg-2+deb11u3 or later
- —upgrade to 3.11.2-6+deb12u2 or later
- —upgrade to 3.7.3-2+deb10u7 or later
- —upgrade to 3.9.2-1+deb11u2 or later
Is CVE-2023-6597 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (8)
- from 0, < 3.10.14-r0
- from 0, < 3.8.19, >= 3.9.0, < 3.9.19, >= 3.10.0, < 3.10.14, >= 3.11.0, < 3.11.8, >= 3.12.0, < 3.12.1
- from 0, < 3.8.19, >= 3.9.0, < 3.9.19, >= 3.10.0, < 3.10.14, >= 3.11.0, < 3.11.8, >= 3.12.0, < 3.12.1
- from 0, < 3.8.19, >= 3.9.0, < 3.9.19, >= 3.10.0, < 3.10.14, >= 3.11.0, < 3.11.8, >= 3.12.0, < 3.12.1
- from 0, < 7.3.5+dfsg-2+deb11u3
- from 0, < 3.11.2-6+deb12u2
- from 0, < 3.7.3-2+deb10u7
- from 0, < 3.9.2-1+deb11u2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |