CVE-2024-6232
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-6232 affects CPython's tarfile module, where regular expressions allowed excessive backtracking during tarfile.TarFile header parsing, making it vulnerable to ReDoS (Regular Expression Denial of Service) attacks via specifically-crafted tar archives. The vulnerability was discovered and disclosed in September 2024, affecting multiple Python versions up to 3.12.5 and various alpha releases of 3.13.0 (Python Security, NVD).

Technical details

The vulnerability stems from backtracking issues in the parsing of header values, specifically affecting hdrcharset, PAX, and GNU sparse headers. The CVSS v3.1 base score is 7.5 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The issue is classified under CWE-1333 (Inefficient Regular Expression Complexity) (NVD).

Impact

Successful exploitation of this vulnerability could lead to a Denial of Service (DoS) condition through ReDoS attacks. The vulnerability affects the availability of the system while having no direct impact on confidentiality or integrity (NetApp Advisory).

Mitigation and workarounds

Fixed versions have been released for multiple Python branches: 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20. Users are advised to upgrade to these patched versions. The fix involves rewriting the header parsing to be stricter and removing backtracking from the parsing process (Python PR).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management