CVE-2023-6597

Aliases:ALPINE-CVE-2023-6597RHSA-2024:4077RHSA-2024:4166RHSA-2024:4370RHSA-2024:4456RHSA-2024:4896RHSA-2024:5535RHSA-2024:5689DEBIAN-CVE-2023-6597CGA-2vxv-jwv7-pxc4CGA-549j-2w92-45qfCGA-5rq4-5x2x-69pgCGA-7557-jx95-r6rxCGA-94vm-rcvj-p5vfCGA-c66x-5q52-42j7CGA-fcmq-h448-q6jqCGA-fvm6-gmjr-w257CGA-gr44-8cwh-4grgCGA-j9cx-6h55-jvwvCGA-jcwx-wcw9-9fgcCGA-m5w4-h5q2-hh8pCGA-pc89-gqw5-xvc6CGA-8cgm-46q9-x8xwCGA-8x3f-v2x2-6q3xCGA-rxj8-564p-gv97CGA-vg34-pwx4-cr5mCGA-w6cg-x6v4-6487CGA-wf47-jjcc-4cffCGA-wh73-4p3q-wcfpCGA-whq3-42vc-chqwCGA-xchp-493m-qc55UBUNTU-CVE-2023-6597
Advisory lineage Upstream: 0 Downstream: 39
Deferred
Published: 19 Mar 2024, 15:44
Last modified:03 Nov 2025, 21:50

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (cve.org)
EPSS Score
0.31% LOW
0% probability +0.24%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

19 Mar 2024, 15:44
Published
Vulnerability first disclosed
03 Nov 2025, 21:50
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

EPSS Trends

Current EPSS score: 0.31% Percentile: 24%

Affected Systems

  • alpinepython3

    < 3.10.14-r0 | < 3.10.14-r0

  • chainguardaws-cli-v2

    < 2.15.35-r0

  • chainguardpython-3.10

    < 3.10.14-r0

  • chainguardpython-3.11

    < 3.11.8-r0

  • chainguardpython-3.12

    < 3.12.2-r0

  • chainguardpython-3.12-base

    < 3.12.2-r0

  • chainguardpython-3.12-base-dev

    < 3.12.2-r0

  • chainguardpython-3.12-dev

    < 3.12.2-r0

  • chainguardpython-3.12-doc

    < 3.12.2-r0

  • chainguardpython-3.12-privileged-netbindservice

    < 3.12.2-r0

  • chainguardpython-3.12-tk

    < 3.12.2-r0

  • chainguardpython-3.9

    < 3.9.19-r0

  • wolfiaws-cli-v2

    < 2.15.35-r0

  • wolfipython-3.10

    < 3.10.14-r0

  • wolfipython-3.11

    < 3.11.8-r0

  • wolfipython-3.12

    < 3.12.2-r0

  • wolfipython-3.12-base

    < 3.12.2-r0

  • wolfipython-3.12-base-dev

    < 3.12.2-r0

  • wolfipython-3.12-dev

    < 3.12.2-r0

  • wolfipython-3.12-doc

    < 3.12.2-r0

  • wolfipython-3.12-privileged-netbindservice

    < 3.12.2-r0

  • wolfipython-3.12-tk

    < 3.12.2-r0

  • debianpypy3

    < 7.3.5+dfsg-2+deb11u3 | < 7.3.11+dfsg-2+deb12u2 | < 7.3.13+dfsg-1 | < 7.3.13+dfsg-1

  • debianpython3.11

    < 3.11.2-6+deb12u2

  • debianpython3.9

    < 3.9.2-1+deb11u2

  • ubuntupython3.10

    < 3.10.12-1~22.04.4

  • ubuntupython3.11

    < 3.11.0~rc1-1~22.04.1~esm1

  • ubuntupython3.4

    all

  • ubuntupython3.5

    < 3.5.2-2ubuntu0~16.04.13+esm13

  • ubuntupython3.7

    < 3.7.5-2ubuntu1~18.04.2+esm3

  • ubuntupython3.8

    < 3.8.0-3ubuntu1~18.04.2+esm2 | < 3.8.10-0ubuntu1~20.04.10

  • ubuntupython3.9

    < 3.9.5-3ubuntu0~20.04.1+esm2

  • python software foundationcpython

    < 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 | ≥ 3.13.0a1, < 3.13.0a3

  • redhatplatform-python

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.6.8-39.el8_4.5

  • redhatplatform-python-debug

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5

  • redhatplatform-python-devel

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5

  • redhatpython-unversioned-command

    < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4

  • redhatpython3

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4

  • redhatpython3-debug

    < 0:3.9.16-1.el9_2.5

  • redhatpython3-debuginfo

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.6.8-39.el8_4.5

  • redhatpython3-debugsource

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.6.8-39.el8_4.5

  • redhatpython3-devel

    < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4

  • redhatpython3-idle

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5

  • redhatpython3-libs

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4

  • redhatpython3-test

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5

  • redhatpython3-tkinter

    < 0:3.6.8-24.el8_2.3 | < 0:3.6.8-39.el8_4.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.16-1.el9_2.5 | < 0:3.9.10-4.el9_0.4

  • redhatpython3.11

    < 0:3.11.7-1.el9_4.1 | < 0:3.11.7-1.el9_4.1 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el9_2.4 | < 0:3.11.2-2.el9_2.4

  • redhatpython3.11-debug

    < 0:3.11.7-1.el9_4.1 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el9_2.4

  • redhatpython3.11-debuginfo

    < 0:3.11.7-1.el9_4.1 | < 0:3.11.7-1.el9_4.1 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el9_2.4 | < 0:3.11.2-2.el9_2.4

  • redhatpython3.11-debugsource

    < 0:3.11.7-1.el9_4.1 | < 0:3.11.7-1.el9_4.1 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el8_8.3 | < 0:3.11.2-2.el9_2.4 | < 0:3.11.2-2.el9_2.4

Showing first 50 affected entries in server-rendered view.

References (42)