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.
{
"cna_assigner": "PSF",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/6xxx/CVE-2023-6597.json"
}{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.8.19"
},
{
"introduced": "3.9.0"
},
{
"fixed": "3.9.19"
},
{
"introduced": "3.10.0"
},
{
"fixed": "3.10.14"
},
{
"introduced": "3.11.0"
},
{
"fixed": "3.11.8"
},
{
"introduced": "3.12.0"
},
{
"fixed": "3.12.1"
},
{
"introduced": "3.13.0a1"
},
{
"fixed": "3.13.0a3"
}
]
}