cve.bz

CVE-2024-6232 python python

7.5 highExploit referenceEPSS 2.2%Fix available

High (7.5) in python python. EPSS 2.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.2% (unchanged from 2.2% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-12-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-6232 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-6232?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-6232?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-6232 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.8.20
Python Software Foundation CPythonfrom 3.9.0 before 3.9.20
Python Software Foundation CPythonfrom 3.10.0 before 3.10.15
Python Software Foundation CPythonfrom 3.11.0 before 3.11.10
Python Software Foundation CPythonfrom 3.12.0 before 3.12.6
Python Software Foundation CPythonfrom 3.13.0a1 before 3.13.0rc2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u5DLA-4354-1
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12pypy3no fix listedDEBIAN-CVE-2024-6232
Debian12python3.113.11.2-6+deb12u4DEBIAN-CVE-2024-6232
Debian13python3.133.13.0~rc2-1DEBIAN-CVE-2024-6232
Debian13, 14pypy37.3.18+dfsg-1DEBIAN-CVE-2024-6232
Ubuntu20.04:LTSpython2.72.7.18-1~20.04.5UBUNTU-CVE-2024-6232 USN-7015-5
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.12UBUNTU-CVE-2024-6232 USN-7015-1
Ubuntu22.04:LTSpython2.72.7.18-13ubuntu1.3UBUNTU-CVE-2024-6232 USN-7015-5
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.6UBUNTU-CVE-2024-6232 USN-7015-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.2UBUNTU-CVE-2024-6232 USN-7015-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm21UBUNTU-CVE-2024-6232 USN-7015-5 USN-7488-1
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm14UBUNTU-CVE-2024-6232 USN-7488-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm3UBUNTU-CVE-2024-6232
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm12UBUNTU-CVE-2024-6232 USN-7015-2 USN-7015-5 USN-7488-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm14UBUNTU-CVE-2024-6232 USN-7015-2
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm10USN-7488-1
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm5USN-7015-2
10 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-7.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-cffi, python39-cffi, python-cffi-debugsource and 1 more0:1.14.3-2.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-chardet, python39-chardet0:3.0.4-19.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-cryptography, python39-cryptography, python-cryptography-debugsource and 1 more0:3.3.1-3.module+el8.10.0+21271+eccd1d86RHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-idna, python39-idna0:2.10-4.module+el8.10.0+21815+bb024982RHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-lxml, python39-lxml, python-lxml-debugsource and 1 more0:4.6.5-1.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-ply, python39-ply0:3.11-10.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-psutil, python39-psutil, python-psutil-debugsource and 1 more0:5.8.0-4.module+el8.9.0+19644+d68f775dRHSA-2024:8359
Red Hatenterprise_linux:8::appstreampython-psycopg2, python39-psycopg2, python39-psycopg2-doc and 3 more0:2.8.6-3.module+el8.10.0+21142+453d2b75RHSA-2024:8359
124 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 13 morepython3, python3-core3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Module for Legacy 15 SP5 and 2 morepython39, python39-core3.9.20-150300.4.52.1SUSE-SU-2024:3411-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Micro 5.1, Linux Enterprise Server 15 SP2-LTSS and 1 morepython3, python3-core3.6.15-150000.3.161.1SUSE-SU-2024:3447-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Python 3 15 SP5 and 2 morepython311, python311-core, python311-documentation3.11.10-150400.9.35.1SUSE-SU-2024:3418-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython310, python310-core3.10.15-150400.4.57.1SUSE-SU-2024:3357-1
SUSELinux Enterprise Module for Basesystem 15 SP6python311-core3.11.10-150600.3.6.1SUSE-SU-2024:3427-1
SUSELinux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Module for Development Tools 15 SP6python3-core3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.10-150400.9.35.1SUSE-SU-2024:3418-1
SUSELinux Enterprise Module for Python 3 15 SP6python311, python311-core3.11.10-150600.3.6.1SUSE-SU-2024:3427-1
SUSELinux Enterprise Module for Python 3 15 SP6python312, python312-core3.12.6-150600.3.6.1SUSE-SU-2024:3303-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 morepython3, python3-base3.4.10-25.139.1SUSE-SU-2024:3384-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python36, python36-core3.6.15-67.1SUSE-SU-2024:3430-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5python311, python311-core, python311-documentation3.11.10-150400.9.35.1SUSE-SU-2024:3418-1
openSUSELeap 15.5, Leap 15.6python3, python3-core, python3-documentation3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
openSUSELeap 15.5, Leap 15.6python310, python310-core, python310-documentation3.10.15-150400.4.57.1SUSE-SU-2024:3357-1
openSUSELeap 15.5, Leap 15.6python39, python39-core, python39-documentation3.9.20-150300.4.52.1SUSE-SU-2024:3411-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.10-150600.3.6.1SUSE-SU-2024:3427-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.6-150600.3.6.1SUSE-SU-2024:3303-1
openSUSELeap Micro 5.5python3, python3-core3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
openSUSETumbleweedpython3103.10.15-1.1openSUSE-SU-2024:14345-1
openSUSETumbleweedpython3113.11.9-7.1openSUSE-SU-2024:14346-1
openSUSETumbleweedpython3123.12.6-1.1openSUSE-SU-2024:14370-1
openSUSETumbleweedpython3133.13.0~rc2-1.1openSUSE-SU-2024:14326-1
openSUSETumbleweedpython3143.14.0~a1-1.1openSUSE-SU-2024:14434-1
3 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-67.el8_10.alma.1ALSA-2024:6975
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.10-1.el8_10ALSA-2024:8838
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.6-1.el8_10ALSA-2024:8836
AlmaLinux8python39, python39-idle, python39-libs and 5 more3.9.20-1.module_el8.10.0+3902+1690be06ALSA-2024:8359
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1ALSA-2024:8359
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+3248+c431e88cALSA-2024:8359
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2024:8359
AlmaLinux8python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1ALSA-2024:8359
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2024:8359
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2024:8359
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2024:8359
AlmaLinux8python39-cryptography3.3.1-3.module_el8.10.0+3765+2f9a457dALSA-2024:8359
38 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8pybind110:2.7.1-1.module+el8.9.0+1357+a3b80af7RLSA-2024:8359
Rocky Linux8pytest0:6.0.2-2.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8python-attrs0:20.3.0-2.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8python-cffi0:1.14.3-2.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8python-chardet0:3.0.4-19.module+el8.10.0+1582+bc278001RLSA-2024:8359
Rocky Linux8python-cryptography0:3.3.1-3.module+el8.10.0+1697+7e517775RLSA-2024:8359
Rocky Linux8python-idna0:2.10-4.module+el8.10.0+1809+41195054RLSA-2024:8359
28 more for Rocky Linux in the JSON.
Alpinev3.17python33.10.15-r0ALPINE-CVE-2024-6232
Alpinev3.18, v3.19python33.11.10-r0ALPINE-CVE-2024-6232
Alpinev3.20, v3.21, v3.22 and 2 morepython33.12.6-r0ALPINE-CVE-2024-6232
Azure Linux2python33.9.19-5AZL-48585
Azure Linux3python-pyno fix listedAZL-109671
Azure Linux3python33.12.3-4AZL-48552
Azure Linux3tensorflow2.16.1-7AZL-48740
Alpaquita23python33.11.10-r1BELL-CVE-2024-6232
Alpaquitastreampython33.12.6-r0BELL-CVE-2024-6232
BellSoft Hardened Containers23python33.11.10-r1BELL-CVE-2024-6232
BellSoft Hardened Containersstreampython33.12.6-r0BELL-CVE-2024-6232

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as moderate severity rather than important because while it does allow for a denial of service (DoS) attack via excessive backtracking in the tarfile module, it does not enable remote code execution or compromise the integrity or confidentiality of data. Exploitation requires an attacker to provide a specially crafted tar archive and relies on the victim's system processing that file, which limits the attack vector.

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.9-1.el10Fixed 2025-05-13RHBA-2025:6294
Red Hat Enterprise Linux 7.7 Advanced Update Supportpython3-0:3.6.8-10.el7_7.1Fixed 2024-10-28RHSA-2024:8490
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython3-0:3.6.8-21.el7_9.1Fixed 2025-02-24RHSA-2025:1750
Red Hat Enterprise Linux 8python3-0:3.6.8-67.el8_10Fixed 2024-09-24RHSA-2024:6975
Red Hat Enterprise Linux 8python39:3.9-8100020240927003152.d47b87a4Fixed 2024-10-23RHSA-2024:8359
Red Hat Enterprise Linux 8python39-devel:3.9-8100020240927003152.d47b87a4Fixed 2024-10-23RHSA-2024:8359
Red Hat Enterprise Linux 8python3.12-0:3.12.6-1.el8_10Fixed 2024-11-05RHSA-2024:8836
Red Hat Enterprise Linux 8python3.11-0:3.11.10-1.el8_10Fixed 2024-11-05RHSA-2024:8838
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython39:3.9-8040020241017072554.63cd9ebaFixed 2024-11-07RHSA-2024:8977
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepython39:3.9-8040020241017072554.63cd9ebaFixed 2024-11-07RHSA-2024:8977
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspython39:3.9-8040020241017072554.63cd9ebaFixed 2024-11-07RHSA-2024:8977
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython39:3.9-8060020241017081122.6a631399Fixed 2024-11-04RHSA-2024:8797
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepython39:3.9-8060020241017081122.6a631399Fixed 2024-11-04RHSA-2024:8797
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspython39:3.9-8060020241017081122.6a631399Fixed 2024-11-04RHSA-2024:8797
Red Hat Enterprise Linux 8.8 Extended Update Supportpython3.11-0:3.11.2-2.el8_8.4Fixed 2024-10-03RHSA-2024:7647
Red Hat Enterprise Linux 8.8 Extended Update Supportpython39:3.9-8080020241016061730.93c2fc2fFixed 2024-10-28RHSA-2024:8504
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7pythonOut of support scope
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-nvidia-rhel9Affected
71 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-6232.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-15Siemens SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XCM-/XRM-/XCH-/XRH-300 familynone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON