CVE-2024-4030

On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions.

If youre not using Windows or havent changed the temporary directory location then you arent affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user.

This issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix 700 for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.1 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
PSFCNA
---
---
CISA-ADPADP
7.1 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CVEADP
---
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 1%
Debian logo
Debian Releases
Debian Product
Codename
python2.7
bullseye
2.7.18-8+deb11u1
fixed
python3.11
bookworm
3.11.2-6+deb12u6
fixed
bookworm (security)
3.11.2-6+deb12u3
fixed
python3.12
sid
3.12.10-1
fixed
python3.9
bullseye
3.9.2-1
fixed
bullseye (security)
3.9.2-1+deb11u3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python2.7
noble
dne
mantic
dne
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
python3.10
noble
dne
mantic
dne
jammy
not-affected
focal
dne
python3.11
noble
dne
mantic
not-affected
jammy
not-affected
focal
dne
python3.12
noble
not-affected
mantic
not-affected
jammy
dne
focal
dne
python3.4
noble
dne
mantic
dne
jammy
dne
focal
dne
trusty
not-affected
python3.5
noble
dne
mantic
dne
jammy
dne
focal
dne
xenial
not-affected
trusty
not-affected
python3.6
noble
dne
mantic
dne
jammy
dne
focal
dne
bionic
not-affected
python3.7
noble
dne
mantic
dne
jammy
dne
focal
dne
bionic
not-affected
python3.8
noble
dne
mantic
dne
jammy
dne
focal
not-affected
bionic
not-affected
python3.9
noble
dne
mantic
dne
jammy
dne
focal
not-affected
References