CPython up to 3.12.3/3.13.0a1 mkdtemp temp file

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.2$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in CPython up to 3.12.3/3.13.0a1. This affects the function mkdtemp. This manipulation causes temp file. The identification of this vulnerability is CVE-2024-4030. There is no exploit available. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in CPython up to 3.12.3/3.13.0a1. It has been declared as critical. Affected by this vulnerability is the function mkdtemp. The manipulation with an unknown input leads to a temp file vulnerability. The CWE definition for the vulnerability is CWE-379. The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was shared by Aobo Wang as 118486. It is possible to read the advisory at mail.python.org. This vulnerability is known as CVE-2024-4030 since 04/22/2024. The exploitation appears to be easy. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 211212 (Fedora 41 : python3.8 (2024-7a069f48e4)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 3.12.4 or 3.13.0b1 eliminates this vulnerability. Applying the patch 81939dad77001556c527485d31a2d0f4a759033e is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Tenable (211212) and CERT Bund (WID-SEC-2025-2448). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Affected

  • NetApp ActiveIQ Unified Manager

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.3
VulDB Meta Temp Score: 6.2

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 7.1
CNA Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Temp file
CWE: CWE-379 / CWE-377
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 211212
Nessus Name: Fedora 41 : python3.8 (2024-7a069f48e4)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: CPython 3.12.4/3.13.0b1
Patch: 81939dad77001556c527485d31a2d0f4a759033e

Timelineinfo

04/22/2024 🔍
05/07/2024 +15 days 🔍
05/08/2024 +0 days 🔍
10/30/2025 +540 days 🔍

Sourcesinfo

Advisory: 118486
Researcher: Aobo Wang
Status: Confirmed

CVE: CVE-2024-4030 (🔍)
GCVE (CVE): GCVE-0-2024-4030
GCVE (VulDB): GCVE-100-263419
CERT Bund: WID-SEC-2025-2448 - NetApp ActiveIQ Unified Manager: Schwachstelle ermöglicht Manipulation von Dateien und Offenlegung von Informationen

Entryinfo

Created: 05/08/2024 01:23
Updated: 10/30/2025 11:37
Changes: 05/08/2024 01:23 (58), 06/13/2024 22:51 (1), 07/05/2024 20:15 (11), 11/16/2024 17:52 (2), 10/30/2025 11:37 (7)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!