CVE-2024-6232

Regular-expression DoS when parsing TarFile headers

State
Published
Severity
7.5 High
Published
Sep 3, 2024
Updated
Nov 3, 2025
Reserved
Jun 20, 2024

Read the record on cve.org

Description

There is a MEDIUM severity vulnerability affecting CPython.

Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-1333 Inefficient Regular Expression Complexity

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.8.20Affected
  • 3.9.0 to before 3.9.20Affected
  • 3.10.0 to before 3.10.15Affected
  • 3.11.0 to before 3.11.10Affected
  • 3.12.0 to before 3.12.6Affected
  • 3.13.0a1 to before 3.13.0rc2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.