Moderate Security Update for Python 3.12: Infinite Loop Vulnerability in Tarfile Parsing
Summary
ALSA-2025:14546: Moderate: python3.12 security update. Affects python3.12 versions < 3.12.11-2.el8_10. Fixed in 3.12.11-2.el8_10. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Python is an interpreted, interactive, object-oriented programming language that supports modules, classes, exceptions, and dynamic data types. It is widely used for various applications, from web development to data analysis. The affected package, Python 3.12, includes essential libraries and tools for developers. However, it has been identified to have a security vulnerability that could lead to an infinite loop when parsing tarfiles, potentially causing denial of service.
Vulnerability Detail
The vulnerability, identified as CVE-2025-8194, originates from an issue in the CPython implementation. When a tarfile is parsed, the interpreter may enter an infinite loop, which can lead to resource exhaustion and denial of service. This vulnerability can be exploited by an attacker who can craft a malicious tarfile, leading to significant operational disruptions.
How To Fix
Minimum fixed version
3.12.11-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, avoid processing untrusted tarfiles until the package is updated. If you must handle such files, consider implementing additional validation checks to mitigate the risk of entering an infinite loop.
Conclusion
The identified vulnerability in Python 3.12 poses a moderate risk due to its potential to cause denial of service through infinite loops in tarfile parsing. It is essential to update to the patched version to ensure the security and stability of applications relying on this package.
See every vulnerability recorded for python3.12 →
FAQ
CVE-2025-8194 is a security vulnerability in Python 3.12 that can cause 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.
Exploiting this vulnerability can lead to resource exhaustion, causing applications to become unresponsive and potentially affecting the overall system performance.
Yes, a patch is available in the form of an updated package version 3.12.11-2.el8_10. It is crucial to update to this version to mitigate the risk.
If immediate updates are not possible, avoid processing untrusted tarfiles and implement additional validation checks to reduce the risk of exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for python3.12.