CVE-2023-6597

Python Software Foundation CPython

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.31 % · percentile 24 ()
State
PUBLISHED
Published
Updated
Assigner
PSF
NVD status
Deferred

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:NPSF
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:NNVD · cna@python.org (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Python Software Foundation · CPythonaffected 0 < 3.8.19 ; affected 3.9.0 < 3.9.19 ; affected 3.10.0 < 3.10.14 ; affected 3.11.0 < 3.11.8 ; affected 3.12.0 < 3.12.1 ; affected 3.13.0a1 < 3.13.0a3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD