Critical Security Update for Python 3.12: CPU Denial of Service Vulnerability

python3.12 Updated 15 Jul 2026

Summary

15/07/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:39771: Important: python3.12 security update. Affects python3.12 versions < 3.12.13-3.el9_8.1. Fixed in 3.12.13-3.el9_8.1. 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 an interpreted, interactive, object-oriented programming language that supports various system calls and libraries, making it a versatile tool for developers. It includes features such as modules, classes, exceptions, and dynamic data types. However, it is susceptible to security vulnerabilities, including a recent issue that can lead to a CPU Denial of Service.

Vulnerability Detail

The vulnerability identified as CVE-2026-15308 allows for a CPU Denial of Service through the HTML parser in Python 3.12. This issue arises from repeated unterminated markup declarations, which can cause the parser to enter an infinite loop, consuming excessive CPU resources and potentially leading to application downtime. The impact of this vulnerability can be severe, especially for web applications that rely on HTML parsing, as it can disrupt service availability and degrade performance.

How To Fix

Minimum fixed version

3.12.13-3.el9_8.1

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, avoid using the HTML parser for untrusted input until the update can be applied. Implement input validation to sanitize any HTML content before processing.

Conclusion

The recent vulnerability in Python 3.12, identified as CVE-2026-15308, poses a significant risk of CPU Denial of Service. It is crucial for users to update to the patched version 3.12.13-3.el9_8.1 to mitigate this risk. Temporary workarounds can be implemented while preparing for the update.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

CVE-2026-15308 is a vulnerability in Python 3.12 that can lead to a CPU Denial of Service due to issues in the HTML parser.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can cause excessive CPU usage, leading to application downtime and degraded performance, especially for web applications.

Yes, the patched version is 3.12.13-3.el9_8.1. Updating to this version will resolve the vulnerability.

If immediate updating is not possible, implement input validation to sanitize HTML content and avoid using the HTML parser for untrusted input.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

3.12.13-3.el9_8.1

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