Moderate Security Update for Python 3.11: Addressing ReDoS Vulnerability

python3.11 Updated 02 Oct 2025

Summary

23/10/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:8374: Moderate: python3.11 security update. Affects python3.11 versions < 3.11.7-1.el9_4.6. Fixed in 3.11.7-1.el9_4.6. 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.11 is an interpreted, interactive, object-oriented programming language widely used for various applications, including web development, data analysis, artificial intelligence, and more. It features dynamic typing, high-level data structures, and extensive libraries, making it a versatile choice for developers. However, it is susceptible to security vulnerabilities, such as the recent ReDoS (Regular Expression Denial of Service) issue, which can affect its performance and security.

Vulnerability Detail

The vulnerability identified in Python 3.11 relates to the 'tarfile' module, where a ReDoS attack can occur due to excessive backtracking while parsing header values. This can lead to significant performance degradation, potentially allowing an attacker to exploit the application by causing it to hang or crash. The specific CVE associated with this issue is CVE-2024-6232, which highlights the need for immediate attention to mitigate risks associated with this vulnerability.

How To Fix

Minimum fixed version

3.11.7-1.el9_4.6

This is the first release that contains the fix.

sudo dnf update python3.11

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

Workaround

As a temporary workaround, consider avoiding the use of the 'tarfile' module for untrusted input until the update is applied. Implement input validation to ensure that only safe and expected data is processed.

Conclusion

The recent security update for Python 3.11 addresses a critical ReDoS vulnerability that could impact application performance and security. It is crucial for developers to update to the patched version promptly and consider implementing workarounds to mitigate risks until the update is applied. Regular monitoring and validation of inputs are essential to maintaining application security.

See every vulnerability recorded for python3.11 →

Share this vulnerability

FAQ

A ReDoS attack exploits vulnerabilities in regular expressions, causing excessive backtracking that can lead to application slowdowns or crashes.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The vulnerability can lead to performance issues, application downtime, and potential exploitation by attackers, compromising the security of the system.

Yes, you can avoid using the 'tarfile' module for untrusted input and implement strict input validation as a temporary measure.

If immediate updating is not possible, ensure that your application is not exposed to untrusted inputs and monitor for any unusual behavior.

Related vulnerabilities

Recent vulnerabilities recorded for python3.11.

How To Fix

Minimum fixed version

3.11.7-1.el9_4.6

This is the first release that contains the fix.

sudo dnf update python3.11

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