Lucene search

K
ubuntucveUbuntu.comUB:CVE-2023-6597
HistoryMar 19, 2024 - 12:00 a.m.

CVE-2023-6597

2024-03-1900:00:00
ubuntu.com
ubuntu.com
22
cpython
temporarydirectory class
symlink
dereferencing
cleanup
modification
file permissions
unix

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

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

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

14.3%

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.

Bugs

Notes

Author Note
allenpthuang this was introduced in https://github.com/python/cpython/pull/10320/commits/dcd67c568a477ddf7524e373ac266d2f087e5665

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

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

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

14.3%