Critical Security Update for Python 3.12: Addressing Multiple Vulnerabilities

python3.12 Updated 02 Oct 2025

Summary

12/12/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:10980: Important: python3.12 security update. Affects python3.12 versions < 3.12.8-1.el8_10. Fixed in 3.12.8-1.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python 3.12 is an interpreted, interactive, object-oriented programming language widely used for various applications, including web development, data analysis, artificial intelligence, and more. It features a rich set of modules, classes, and dynamic data types, making it a versatile choice for developers. However, recent vulnerabilities have been identified that could impact the security and performance of applications relying on this version.

Vulnerability Detail

The vulnerabilities in Python 3.12 include issues with virtual environment activation scripts that do not properly quote paths (CVE-2024-9287) and unbounded memory buffering in the SelectorSocketTransport.writelines() method (CVE-2024-12254). These vulnerabilities could lead to security risks such as path injection attacks and excessive memory usage, potentially causing applications to crash or behave unpredictably.

How To Fix

Minimum fixed version

3.12.8-1.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

Currently, there are no specific workarounds provided for these vulnerabilities. The best course of action is to apply the security update as soon as it is available.

Conclusion

In summary, Python 3.12 has critical vulnerabilities that need immediate attention. Updating to the latest patched version is essential to ensure the security and stability of applications using this programming language. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

The main vulnerabilities include issues with virtual environment activation scripts and unbounded memory buffering in specific methods.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

These vulnerabilities could lead to security risks such as path injection attacks and excessive memory usage, potentially causing application crashes.

Yes, a patch is available in the form of an update to version 3.12.8-1.el8_10 for Python 3.12 and its related packages.

While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate security risks.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

3.12.8-1.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