Home / CVE DB / CVE-2024-4030
Standard
Vulnerability Identifier

CVE-2024-4030

2024-05-07
Severity Assessment
7.1
HIGH
CVSS v3.x Score
Clinical Analysis (Description)

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 you’re not using Windows or haven’t changed the temporary directory location then you aren’t 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.

Vector Sequencing

Attack Parameters

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Impact Consequences

Technical Impact

Unchanged
Scope
High
Confidentiality
High
Integrity
None
Availability
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness Classification

CWE-CWE-276

Timeline

Time Line

PUBLICATION
07 May 2024
MODIFICATION
21 Nov 2024
FIRST PATCH
17 Sep 2025
Impact Statistics

Key Metrics

CVSS Score
7.1
HIGH
Patches
3
Available
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.