Read the docs
TI-2024-05780 Aliases CVE-2024-6232GHSA-mmm5-wgvp-wp8r

Regular-expression DoS when parsing TarFile headers

Priority MEDIUM 43CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 29 fixed, 3 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-1333.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.02203 82nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial CPython (Python Software Foundation): 3.8.20, 3.9.20, 3.10.15 +3Red Hat: 19 advisoriesRed Hat: 29 fixed, 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6; 3.13.0a1 to before 3.13.0rc23.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2Patch availableCNA
  • CPython VendorPython Software Foundation Affected before 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6; 3.13.0a1 to before 3.13.0rc2 Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2 Patch available CNA

CPE configurations NVD · 13

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*before 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha0:*:*:*:*:*:*3.13.0 alpha0Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha1:*:*:*:*:*:*3.13.0 alpha1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha2:*:*:*:*:*:*3.13.0 alpha2Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha3:*:*:*:*:*:*3.13.0 alpha3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha4:*:*:*:*:*:*3.13.0 alpha4Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha5:*:*:*:*:*:*3.13.0 alpha5Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:alpha6:*:*:*:*:*:*3.13.0 alpha6Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:beta1:*:*:*:*:*:*3.13.0 beta1Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:beta2:*:*:*:*:*:*3.13.0 beta2Vulnerablepython-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions before 3.8.20; 3.9.0 to before 3.9.20; 3.10.0 to before 3.10.15; 3.11.0 to before 3.11.10; 3.12.0 to before 3.12.6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha0:*:*:*:*:*:* Versions 3.13.0 alpha0 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha1:*:*:*:*:*:* Versions 3.13.0 alpha1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha2:*:*:*:*:*:* Versions 3.13.0 alpha2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha3:*:*:*:*:*:* Versions 3.13.0 alpha3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha4:*:*:*:*:*:* Versions 3.13.0 alpha4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha5:*:*:*:*:*:* Versions 3.13.0 alpha5 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:alpha6:*:*:*:*:*:* Versions 3.13.0 alpha6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:beta1:*:*:*:*:*:* Versions 3.13.0 beta1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:beta2:*:*:*:*:*:* Versions 3.13.0 beta2 Vulnerable ·python-pillow
Show 3 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:python:python:3.13.0:beta3:*:*:*:*:*:*3.13.0 beta3Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:beta4:*:*:*:*:*:*3.13.0 beta4Vulnerablepython-pillow
cpe:2.3:a:python:python:3.13.0:rc1:*:*:*:*:*:*3.13.0 rc1Vulnerablepython-pillow
  • cpe:2.3:a:python:python:3.13.0:beta3:*:*:*:*:*:* Versions 3.13.0 beta3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:beta4:*:*:*:*:*:* Versions 3.13.0 beta4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:3.13.0:rc1:*:*:*:*:*:* Versions 3.13.0 rc1 Vulnerable ·python-pillow

Remediation

  • Fix · CNA CPython (Python Software Foundation) Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2

Red Hat 19 advisories

  • RHSA-2025:1750 Released 2025-02-24 · Red Hat rating Moderate
    python3 security update
    • Red Hat Enterprise Linux Server (v. 7 ELS) python3-3.6.8-21.el7_9.1, python3-libs-3.6.8-21.el7_9.1, python3-libs-3.6.8-21.el7_9.1.ppc
    • Red Hat Enterprise Linux Server Optional (v. 7 ELS) python3-3.6.8-21.el7_9.1, python3-3.6.8-21.el7_9.1.ppc, python3-debug-3.6.8-21.el7_9.1 +9
  • RHSA-2024:9468 Released 2024-11-12 · Red Hat rating Moderate
    python3.9 security update
    • Red Hat CodeReady Linux Builder (v. 9) python3-3.9.19-8.el9_5.1, python3-debug-3.9.19-8.el9_5.1, python3-idle-3.9.19-8.el9_5.1 +2
    • Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.19-8.el9_5.1, python3-devel-3.9.19-8.el9_5.1, python3-tkinter-3.9.19-8.el9_5.1
    • Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.19-8.el9_5.1, python3-libs-3.9.19-8.el9_5.1, python3.9-3.9.19-8.el9_5.1
  • RHSA-2024:9450 Released 2024-11-12 · Red Hat rating Moderate
    python3.11 security update
    • Red Hat CodeReady Linux Builder (v. 9) python3.11-3.11.9-7.el9_5.1, python3.11-debug-3.11.9-7.el9_5.1, python3.11-idle-3.11.9-7.el9_5.1 +2
    • Red Hat Enterprise Linux AppStream (v. 9) python3.11-3.11.9-7.el9_5.1, python3.11-devel-3.11.9-7.el9_5.1, python3.11-libs-3.11.9-7.el9_5.1 +1
Show 16 more Red Hat advisories
  • RHSA-2024:9451 Released 2024-11-12 · Red Hat rating Moderate
    python3.12 security update
    • Red Hat CodeReady Linux Builder (v. 9) python3.12-3.12.5-2.el9_5.1, python3.12-debug-3.12.5-2.el9_5.1, python3.12-idle-3.12.5-2.el9_5.1 +2
    • Red Hat Enterprise Linux AppStream (v. 9) python3.12-3.12.5-2.el9_5.1, python3.12-devel-3.12.5-2.el9_5.1, python3.12-libs-3.12.5-2.el9_5.1 +1
  • RHSA-2024:8977 Released 2024-11-07 · Red Hat rating Moderate
    python39:3.9 security update
    • Red Hat Enterprise Linux AppStream AUS (v.8.4) PyYAML-5.4.1-1.module+el8.4.0+10484+27ce8e03.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-2.module+el8.4.0+15042+dc5a279b.1.src::python39:3.9 +47
    • Red Hat Enterprise Linux AppStream E4S (v.8.4) PyYAML-5.4.1-1.module+el8.4.0+10484+27ce8e03.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-2.module+el8.4.0+15042+dc5a279b.1.src::python39:3.9 +47
    • Red Hat Enterprise Linux AppStream TUS (v.8.4) PyYAML-5.4.1-1.module+el8.4.0+10484+27ce8e03.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-2.module+el8.4.0+15042+dc5a279b.1.src::python39:3.9 +47
  • RHSA-2024:8836 Released 2024-11-05 · Red Hat rating Moderate
    python3.12 security update
    • Red Hat Enterprise Linux AppStream (v. 8) python3.12-3.12.6-1.el8_10, python3.12-devel-3.12.6-1.el8_10, python3.12-libs-3.12.6-1.el8_10 +2
    • Red Hat Enterprise Linux CRB (v. 8) python3.12-3.12.6-1.el8_10, python3.12-debug-3.12.6-1.el8_10, python3.12-idle-3.12.6-1.el8_10 +2
  • RHSA-2024:8838 Released 2024-11-05 · Red Hat rating Moderate
    python3.11 security update
    • Red Hat Enterprise Linux AppStream (v. 8) python3.11-3.11.10-1.el8_10, python3.11-devel-3.11.10-1.el8_10, python3.11-libs-3.11.10-1.el8_10 +2
    • Red Hat Enterprise Linux CRB (v. 8) python3.11-3.11.10-1.el8_10, python3.11-debug-3.11.10-1.el8_10, python3.11-idle-3.11.10-1.el8_10 +2
  • RHSA-2024:8797 Released 2024-11-04 · Red Hat rating Moderate
    python39:3.9 security update
    • Red Hat Enterprise Linux AppStream AUS (v.8.6) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
    • Red Hat Enterprise Linux AppStream E4S (v.8.6) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
    • Red Hat Enterprise Linux AppStream TUS (v.8.6) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
  • RHSA-2024:8504 Released 2024-10-28 · Red Hat rating Moderate
    python39:3.9 security update
    • Red Hat Enterprise Linux AppStream EUS (v.8.8) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-5.module+el8.7.0+16654+645aad7f.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
  • RHSA-2024:8490 Released 2024-10-28 · Red Hat rating Moderate
    python3 security update
    • Red Hat Enterprise Linux Server AUS (v. 7.7) python3-3.6.8-10.el7_7.1, python3-libs-3.6.8-10.el7_7.1
    • Red Hat Enterprise Linux Server Optional AUS (v. 7.7) python3-3.6.8-10.el7_7.1, python3-debug-3.6.8-10.el7_7.1, python3-devel-3.6.8-10.el7_7.1 +3
  • RHSA-2024:8446 Released 2024-10-24 · Red Hat rating Moderate
    python3.9 security update
    • Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.18-3.el9_4.6, python3-devel-3.9.18-3.el9_4.6, python3-tkinter-3.9.18-3.el9_4.6
    • Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.18-3.el9_4.6, python3-libs-3.9.18-3.el9_4.6, python3.9-3.9.18-3.el9_4.6
    • Red Hat Enterprise Linux CRB (v. 9) python3-3.9.18-3.el9_4.6, python3-debug-3.9.18-3.el9_4.6, python3-idle-3.9.18-3.el9_4.6 +2
  • RHSA-2024:8447 Released 2024-10-24 · Red Hat rating Moderate
    python3.12 security update
    • Red Hat Enterprise Linux AppStream (v. 9) python3.12-3.12.1-4.el9_4.4, python3.12-devel-3.12.1-4.el9_4.4, python3.12-libs-3.12.1-4.el9_4.4 +1
    • Red Hat Enterprise Linux CRB (v. 9) python3.12-3.12.1-4.el9_4.4, python3.12-debug-3.12.1-4.el9_4.4, python3.12-idle-3.12.1-4.el9_4.4 +2
  • RHSA-2024:8374 Released 2024-10-23 · Red Hat rating Moderate
    python3.11 security update
    • Red Hat Enterprise Linux AppStream (v. 9) python3.11-3.11.7-1.el9_4.6, python3.11-devel-3.11.7-1.el9_4.6, python3.11-libs-3.11.7-1.el9_4.6 +1
    • Red Hat Enterprise Linux CRB (v. 9) python3.11-3.11.7-1.el9_4.6, python3.11-debug-3.11.7-1.el9_4.6, python3.11-idle-3.11.7-1.el9_4.6 +2
  • RHSA-2024:8359 Released 2024-10-23 · Red Hat rating Moderate
    python39:3.9 and python39-devel:3.9 security update
    • Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.9.0+19644+d68f775d.src::python39:3.9, mod_wsgi-4.7.1-7.module+el8.9.0+19644+d68f775d.src::python39:3.9, numpy-1.19.4-3.module+el8.9.0+19644+d68f775d.src::python39:3.9 +47
    • Red Hat Enterprise Linux CRB (v. 8) Cython-0.29.21-5.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pybind11-2.7.1-1.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9, pytest-6.0.2-2.module+el8.9.0+19644+d68f775d.src::python39-devel:3.9 +33
  • RHSA-2024:8130 Released 2024-10-15 · Red Hat rating Moderate
    python3.9 security update
    • Red Hat Enterprise Linux AppStream E4S (v.9.0) python-unversioned-command-3.9.10-4.el9_0.6, python3-devel-3.9.10-4.el9_0.6, python3-tkinter-3.9.10-4.el9_0.6
    • Red Hat Enterprise Linux BaseOS E4S (v.9.0) python3-3.9.10-4.el9_0.6, python3-libs-3.9.10-4.el9_0.6, python3.9-3.9.10-4.el9_0.6
  • RHSA-2024:7647 Released 2024-10-03 · Red Hat rating Moderate
    python3.11 security update
    • Red Hat CodeReady Linux Builder EUS (v.8.8) python3.11-3.11.2-2.el8_8.4, python3.11-debug-3.11.2-2.el8_8.4, python3.11-idle-3.11.2-2.el8_8.4 +2
    • Red Hat Enterprise Linux AppStream EUS (v.8.8) python3.11-3.11.2-2.el8_8.4, python3.11-devel-3.11.2-2.el8_8.4, python3.11-libs-3.11.2-2.el8_8.4 +2
  • RHSA-2024:7415 Released 2024-10-01 · Red Hat rating Moderate
    python3.11 security update
    • Red Hat CodeReady Linux Builder EUS (v.9.2) python3.11-3.11.2-2.el9_2.6, python3.11-debug-3.11.2-2.el9_2.6, python3.11-idle-3.11.2-2.el9_2.6 +2
    • Red Hat Enterprise Linux AppStream EUS (v.9.2) python3.11-3.11.2-2.el9_2.6, python3.11-devel-3.11.2-2.el9_2.6, python3.11-libs-3.11.2-2.el9_2.6 +1
  • RHSA-2024:6975 Released 2024-09-24 · Red Hat rating Moderate
    python3 security update
    • Red Hat Enterprise Linux AppStream (v. 8) platform-python-3.6.8-67.el8_10, platform-python-debug-3.6.8-67.el8_10, platform-python-devel-3.6.8-67.el8_10 +3
    • Red Hat Enterprise Linux BaseOS (v. 8) platform-python-3.6.8-67.el8_10, python3-3.6.8-67.el8_10, python3-libs-3.6.8-67.el8_10 +1
  • RHSA-2024:6909 Released 2024-09-23 · Red Hat rating Important
    python3.9 security update
    • Red Hat CodeReady Linux Builder EUS (v.9.2) python3-3.9.16-1.el9_2.8, python3-debug-3.9.16-1.el9_2.8, python3-idle-3.9.16-1.el9_2.8 +2
    • Red Hat Enterprise Linux AppStream EUS (v.9.2) python-unversioned-command-3.9.16-1.el9_2.8, python3-devel-3.9.16-1.el9_2.8, python3-tkinter-3.9.16-1.el9_2.8
    • Red Hat Enterprise Linux BaseOS EUS (v.9.2) python3-3.9.16-1.el9_2.8, python3-libs-3.9.16-1.el9_2.8, python3.9-3.9.16-1.el9_2.8

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)AffectedNo fix yet
RHOAI-2.13-RHEL-8Fixed—
RHOAI-2.14-RHEL-8Fixed—
Red Hat CodeReady Linux Builder (v. 9)Fixed RHSA-2024:9450, RHSA-2024:9451, RHSA-2024:9468
Red Hat CodeReady Linux Builder EUS (v.8.8)Fixed RHSA-2024:7647
Red Hat CodeReady Linux Builder EUS (v.9.2)Fixed RHSA-2024:6909, RHSA-2024:7415
Red Hat Enterprise Linux AppStream (v. 10)Fixed—
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2024:6975, RHSA-2024:8359, RHSA-2024:8836, RHSA-2024:8838
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2024:8374, RHSA-2024:8446, RHSA-2024:8447, RHSA-2024:9450, RHSA-2024:9451, RHSA-2024:9468
Red Hat Enterprise Linux AppStream AUS (v.8.4)Fixed RHSA-2024:8977
Red Hat Enterprise Linux AppStream AUS (v.8.6)Fixed RHSA-2024:8797
Red Hat Enterprise Linux AppStream E4S (v.8.4)Fixed RHSA-2024:8977
Red Hat Enterprise Linux AppStream E4S (v.8.6)Fixed RHSA-2024:8797
Red Hat Enterprise Linux AppStream E4S (v.9.0)Fixed RHSA-2024:8130
Red Hat Enterprise Linux AppStream EUS (v.8.8)Fixed RHSA-2024:7647, RHSA-2024:8504
Red Hat Enterprise Linux AppStream EUS (v.9.2)Fixed RHSA-2024:6909, RHSA-2024:7415
Red Hat Enterprise Linux AppStream TUS (v.8.4)Fixed RHSA-2024:8977
Red Hat Enterprise Linux AppStream TUS (v.8.6)Fixed RHSA-2024:8797
Red Hat Enterprise Linux BaseOS (v. 10)Fixed—
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2024:6975
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2024:8446, RHSA-2024:9468
Red Hat Enterprise Linux BaseOS E4S (v.9.0)Fixed RHSA-2024:8130
Red Hat Enterprise Linux BaseOS EUS (v.9.2)Fixed RHSA-2024:6909
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2024:8359, RHSA-2024:8836, RHSA-2024:8838
Red Hat Enterprise Linux CRB (v. 9)Fixed RHSA-2024:8374, RHSA-2024:8446, RHSA-2024:8447
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)Fixed—
Red Hat Enterprise Linux Server (v. 7 ELS)Fixed RHSA-2025:1750
Red Hat Enterprise Linux Server AUS (v. 7.7)Fixed RHSA-2024:8490
Red Hat Enterprise Linux Server Optional (v. 7 ELS)Fixed RHSA-2025:1750
Red Hat Enterprise Linux Server Optional AUS (v. 7.7)Fixed RHSA-2024:8490
Not affected: 1 product
  • Red Hat Enterprise Linux 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-6232
  2. 2026-10-03 Alias added: GHSA-mmm5-wgvp-wp8r
  3. 2026-10-30 Fix available: RHOAI-2.13-RHEL-8, RHOAI-2.14-RHEL-8 · Red Hat

References

  • TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
  • TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
  • TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
  • TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
  • TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
  • TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
See all 83 →

Sources