Security Update for Python 3.12: Addressing Multiple Vulnerabilities

python3.12 Updated 02 Oct 2025

Summary

24/09/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:6961: Moderate: python3.12 security update. Affects python3.12 versions < 3.12.5-2.el8_10. Fixed in 3.12.5-2.el8_10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Python 3.12 is a high-level, dynamically typed programming language known for its emphasis on code readability and extensive standard library. It supports a wide range of applications and has a vast ecosystem of third-party libraries. The python3.12 package includes the reference interpreter for Python version 3, while its standard library is primarily provided in the python3.12-libs package. Additional components like python3.12-tkinter and python3.12-test may require separate installation. Documentation is available in the python3.12-docs package.

Vulnerability Detail

The vulnerabilities in Python 3.12 include incorrect handling of IPv4 and IPv6 private ranges (CVE-2024-4032), improper quoting of newlines in email headers within the email module leading to header injection (CVE-2024-6923), and a potential Denial of Service (DoS) when iterating over a malicious ZIP file (CVE-2024-8088). These vulnerabilities can lead to security breaches, data leaks, and service disruptions, making it crucial for users to address them promptly.

How To Fix

Minimum fixed version

3.12.5-2.el8_10

This is the first release that contains the fix.

sudo dnf update python3.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected features of the email module and refrain from processing untrusted ZIP files until the update is applied. However, this is not a long-term solution and updating is strongly recommended.

Conclusion

The security update for Python 3.12 addresses critical vulnerabilities that could lead to serious security issues. Users are strongly advised to update their packages to ensure the integrity and security of their applications. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

The main vulnerabilities include incorrect handling of private IP ranges, email header injection issues, and potential Denial of Service from malicious ZIP files.

You can use Vulert, which monitors and alerts for open-source vulnerabilities. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

It is recommended to update to version 3.12.5-2.el8_10 or later to mitigate the vulnerabilities.

Yes, Vulert provides real-time monitoring for open-source vulnerabilities without requiring code access or installation.

Detailed information can be found on the CVE pages for CVE-2024-4032, CVE-2024-6923, and CVE-2024-8088.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

3.12.5-2.el8_10

This is the first release that contains the fix.

sudo dnf update python3.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback