Moderate Security Update for Python 3.12: Infinite Loop Vulnerability in Tarfile Parsing

python3.12 Updated 10 Oct 2025

Summary

10/10/2025
N/A
Yes i
High
7.5

RLSA-2025:15007: Moderate: python3.12 security update. Affects python3.12 versions < 0:3.12.9-1.el9_6.2. Fixed in 0:3.12.9-1.el9_6.2. 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 is a widely-used interpreted, interactive, object-oriented programming language known for its simplicity and versatility. It supports modules, classes, exceptions, and dynamic data types, making it suitable for various applications. However, Python 3.12 has been identified with a vulnerability that can lead to an infinite loop when parsing tarfiles, potentially causing denial of service.

Vulnerability Detail

The vulnerability, identified as CVE-2025-8194, arises from an infinite loop in the CPython implementation when handling tarfile parsing. This flaw can be exploited by an attacker to create a specially crafted tarfile that, when processed, leads to excessive resource consumption, effectively causing the application to hang or crash. The severity of this vulnerability is reflected in its CVSS score of 7.5, indicating a moderate risk to systems using the affected package.

How To Fix

Minimum fixed version

0:3.12.9-1.el9_6.2

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 this vulnerability. The best course of action is to apply the security update as soon as it is available.

Conclusion

In summary, the identified vulnerability in Python 3.12 poses a moderate risk due to the potential for denial of service through infinite loop exploitation. It is crucial to update to the patched version to safeguard your applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for python3.12 →

Share this vulnerability

FAQ

CVE-2025-8194 is a vulnerability in Python 3.12 that causes an infinite loop when parsing tarfiles, potentially leading to denial of service.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a moderate level of risk.

While there are no specific workarounds, it is advisable to prioritize updating Python to the patched version as soon as possible to mitigate the risk.

The security fix has been credited to the Rocky Enterprise Software Foundation and Red Hat, who have addressed the vulnerability in the latest package update.

Related vulnerabilities

Recent vulnerabilities recorded for python3.12.

How To Fix

Minimum fixed version

0:3.12.9-1.el9_6.2

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