CVE-2023-6597
Python · CVE-2023-6597
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.313% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.8 · published by PSFCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:57:03.163Z
CVSS 3.1 · 7.8 · published by Ubuntu SecurityCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:48:08.476Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:03.163Z | CVE Program |
| epss | verified | 2026-11-19T16:04:37.769Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:48:41.523Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:03.163Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:03.163Z | CVE Program |
Affected versions and configuration
Python Software Foundation CPython; default status: unaffected: 0 to < 3.8.19 [affected; scheme: python]; 3.9.0 to < 3.9.19 [affected; scheme: python]; 3.10.0 to < 3.10.14 [affected; scheme: python]; 3.11.0 to < 3.11.8 [affected; scheme: python]; 3.12.0 to < 3.12.1 [affected; scheme: python]; 3.13.0a1 to < 3.13.0a3 [affected; scheme: python]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/python/cpython",
"vendor": "Python Software Foundation",
"product": "CPython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.8.19",
"versionType": "python"
},
{
"status": "affected",
"version": "3.9.0",
"lessThan": "3.9.19",
"versionType": "python"
},
{
"status": "affected",
"version": "3.10.0",
"lessThan": "3.10.14",
"versionType": "python"
},
{
"status": "affected",
"version": "3.11.0",
"lessThan": "3.11.8",
"versionType": "python"
},
{
"status": "affected",
"version": "3.12.0",
"lessThan": "3.12.1",
"versionType": "python"
},
{
"status": "affected",
"version": "3.13.0a1",
"lessThan": "3.13.0a3",
"versionType": "python"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-6597",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-11-05T19:08:44.665083Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*"
],
"vendor": "python_software_foundation",
"product": "cpython",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "3.8.19",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.9.0",
"lessThan": "3.9.19",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.10.0",
"lessThan": "3.10.14",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.11.0",
"lessThan": "3.11.8",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.12.0",
"lessThan": "3.12.1",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.13.0a1",
"lessThan": "3.13.0a3",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"description": "CWE-noinfo Not enough information"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-11-05T19:16:27.862Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/python/cpython/commit/81c16cd94ec38d61aa478b9a452436dc3b1b524d",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/6ceb8aeda504b079fef7a57b8d81472f15cdd9a5",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/5585334d772b253a01a6730e8202ffb1607c3d25",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/8eaeefe49d179ca4908d052745e3bb8b6f238f82",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/d54e22a669ae6e987199bb5d2c69bb5a46b0083b",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/commit/02a9259c717738dfe6b463c44d7e17f2b6d2cb3a",
"tags": [
"patch",
"x_transferred"
]
},
{
"url": "https://github.com/python/cpython/issues/91133",
"tags": [
"issue-tracking",
"x_transferred"
]
},
{
"url": "https://mail.python.org/archives/list/[email protected]/thread/Q5C6ATFC67K53XFV4KE45325S7NS62LD/",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/03/msg00025.html",
"tags": [
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2024/03/20/5",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/T3IGRX54M7RNCQOXVQO5KQKTGWCOABIM/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/U5VHWS52HGD743C47UMCSAK2A773M2YE/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T21:50:47.799Z"
}
}
]
}Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.12",
"debian": "https://tracker.debian.org/pkg/python3.12",
"source": "https://ubuntu.com/security/cve?package=python3.12",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.12",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.12.0-1ubuntu0.1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.3-1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "3.12.4-1ubuntu1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.10",
"debian": "https://tracker.debian.org/pkg/python3.10",
"source": "https://ubuntu.com/security/cve?package=python3.10",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.10",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.14",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.10.12-1~22.04.4",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "python3.11",
"debian": "https://tracker.debian.org/pkg/python3.11",
"source": "https://ubuntu.com/security/cve?package=python3.11",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=python3.11",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "3.11.6-3ubuntu0.1",
"release_codename": "mantic"
},
{
"pocket": "esm-apps",
"status": "released",
"component": null,
"description": "3.11.0~rc1-1~22.04.1~esm1",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / mantic | python3.12 | security | 3.12.0-1ubuntu0.1 | Official record |
| upstream-release | upstream / upstream | python3.10 | Not a distribution channel | 3.10.14 | Official record |
| distribution-package | Ubuntu / jammy | python3.10 | security | 3.10.12-1~22.04.4 | Official record |
| distribution-package | Ubuntu / mantic | python3.11 | security | 3.11.6-3ubuntu0.1 | Official record |
| distribution-package | Ubuntu / jammy | python3.11 | esm-apps | 3.11.0~rc1-1~22.04.1~esm1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:57:03.163ZArchived source JSON
Source publication: 2024-03-19T15:44:28.989Z
Source modification: 2025-11-03T21:50:47.799ZDocument fingerprint
aea4d262ddbc6e75754b2c688161c2d18e3f8749ba4e5e2510888957d2f1a23d - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T12:48:08.476ZArchived source JSON
Source publication: 2024-03-19T16:15:00.000Z
Source modification: 2025-06-24T15:16:03.789ZDocument fingerprint
c5ca5517f6283547c494a17b9b26fdba5781dae5a0e1c307f9becdc61bd39396 - Ubuntu SecurityConsulted: 2026-11-19T12:48:13.341ZArchived source JSON
Source publication: 2024-03-19T16:15:00.000Z
Source modification: 2025-06-24T15:16:03.789ZDocument fingerprint
d0b4f0f3c58eb1d54bc58a7653225a4d83c2991a9222afcf2468287c324f7ee3 - Ubuntu SecurityConsulted: 2026-11-19T12:48:41.523ZArchived source JSON
Source publication: 2024-03-19T16:15:00.000Z
Source modification: 2025-06-24T15:16:03.789ZDocument fingerprint
9cd5740f6ee87b91c9dd35271e23a7383862dfa05eb16a6af456f24a4bdb5995 - FIRST EPSSConsulted: 2026-11-19T16:04:37.769ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
eeab810781addaf3718bffbbfbd9069ab904b94a362008ceb3a8de1b19f5ac77
Official status history
- UNKNOWN → PUBLISHED · · evidence