VDB

CVE-2023-6597

CVE-2023-6597 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
aws-cli-v2Wolfi2.15.35-r0
python3.11-testAmazon Linux3.11.6-1.amzn2023.0.3
python3-develAmazon Linux3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6
python3-idleAmazon Linux3.9.16-1.amzn2023.0.8
python3Alpine3.10.14-r0
pythonBitnami3.12.1, 3.11.8, 3.10.14, 3.9.19, 3.8.19
python3.11-idleAmazon Linux3.11.6-1.amzn2023.0.3
python3-tkinterAmazon Linux3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6
python3-debugAmazon Linux3.9.16-1.amzn2023.0.8, 3.7.16-1.amzn2.0.6
python-3.12Chainguard3.12.2-r0
python-3.11Wolfi3.11.8-r0
python-3.12Wolfi3.12.2-r0

36 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.9.0, 3.10.0
wolfiaws-cli-v20
amazon:2023python3.11-test0
amazon:2python3-devel0
amazon:2023python3-idle0
alpinepython30
amazon:2023python3.11-idle0
amazon:2python3-tkinter0
amazon:2023python3-tkinter0
Python Software FoundationCPython
amazon:2023python3-debug0
chainguardpython-3.120
wolfipython-3.110
wolfipython-3.120
amazon:2023python30
chainguardpython-3.110
amazon:2python3-debug0
wolfipython-3.100
amazon:2python3-test0
Python Software FoundationCPython3.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›