BreachSpiderVerified, not vibes

CVE-2023-6597 in Class products

High 7.8

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 potent...

Affects 0 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.8
EPSS0.4%
EPSS percentile24th
FixUnknown

Requires local access, high complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Class — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-6597
BreachSpider IDBS-2024-GLOBAL-051127-H
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Published2024-03-19
Last modified2026-06-17
SourceNVD

Analysis AI-written, not human-reviewed

A vulnerability in the CPython tempfile.TemporaryDirectory class allows users with the ability to run privileged programs to modify permissions of files referenced by symlinks during cleanup of permissions-related errors.

The attack vector involves an attacker creating a symlink to a target file in a directory that will be cleaned up by the tempfile.TemporaryDirectory class. When the class attempts to clean up the directory and encounters a permissions-related error, it dereferences the symlink, potentially allowing the attacker to modify the permissions of the target file.

Questions

What is CVE-2023-6597?

A vulnerability in the CPython tempfile.TemporaryDirectory class allows users with the ability to run privileged programs to modify permissions of files referenced by symlinks during cleanup of permissions-related errors.

What is the CVSS score for CVE-2023-6597?

CVE-2023-6597 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N. EPSS: 0.4%.

Is CVE-2023-6597 actively exploited?

No confirmed active exploitation of CVE-2023-6597 as of 2026-09-25.

How do I remediate CVE-2023-6597?

Priority: HIGH.

What systems are affected by CVE-2023-6597?

CVE-2023-6597 affects Class.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Class","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.