Moderate Vulnerability in Python 3.11: ReDoS via Excessive Backtracking

python3.11 Updated 02 Oct 2025

Summary

05/11/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:8838: Moderate: python3.11 security update. Affects python3.11 versions < 3.11.10-1.el8_10. Fixed in 3.11.10-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 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.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 a rich set of libraries and frameworks, making it a popular choice among developers. However, Python 3.11 is susceptible to a security vulnerability in the tarfile module, which can lead to denial-of-service attacks through regular expression denial of service (ReDoS) due to excessive backtracking while parsing header values.

Vulnerability Detail

The vulnerability identified as CVE-2024-6232 allows attackers to exploit the tarfile module in Python 3.11 by crafting specific input that causes excessive backtracking in regular expressions. This can lead to significant performance degradation, potentially rendering the application unresponsive. The vulnerability arises from the way the tarfile module handles header values, making it susceptible to specially crafted tar files that can trigger this excessive backtracking.

How To Fix

Minimum fixed version

3.11.10-1.el8_10

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, avoid processing untrusted tar files or implement input validation to filter out potentially malicious inputs until the package is updated.

Conclusion

The vulnerability in Python 3.11's tarfile module poses a moderate risk due to the potential for denial-of-service attacks. It is crucial for users to update to the patched version to safeguard their applications. Implementing workarounds and utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for python3.11 →

Share this vulnerability

FAQ

CVE-2024-6232 is a security vulnerability in Python 3.11's tarfile module that allows for denial-of-service attacks through excessive backtracking in regular expressions.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your manifest file.

Failing to update Python 3.11 may leave your application vulnerable to denial-of-service attacks, which can disrupt service availability and impact user experience.

Yes, you can mitigate the risk by avoiding the processing of untrusted tar files and implementing input validation to filter out potentially harmful inputs.

For more details, refer to the CVE page associated with CVE-2024-6232, which provides in-depth information about the vulnerability and its implications.

Related vulnerabilities

Recent vulnerabilities recorded for python3.11.

How To Fix

Minimum fixed version

3.11.10-1.el8_10

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