---
title: "CVE-2024-6232\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-6232?format=md
keywords: index, follow
---

# CVE-2024-6232

Publication date 3 September 2024

Last updated 24 June 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2024-6232?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python2.7 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Fixed 2.7.18-13ubuntu1.3 |
| 20.04 LTS focal | Fixed 2.7.18-1~20.04.5 |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Fixed 2.7.12-1ubuntu0~16.04.18+esm12  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 2.7.6-8ubuntu0.6+esm21  Ubuntu Pro |
| python3.10 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Fixed 3.10.12-1~22.04.6 |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.11 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Fixed 3.11.0~rc1-1~22.04.1~esm2  Ubuntu Pro |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.12 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Fixed 3.12.3-1ubuntu0.2 |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.13 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.4 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 3.4.3-1ubuntu1~14.04.7+esm14  Ubuntu Pro |
| python3.5 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Fixed 3.5.2-2ubuntu0~16.04.13+esm14  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 3.5.2-2ubuntu0~16.04.4~14.04.1+esm3  Ubuntu Pro |
| python3.6 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Fixed 3.6.9-1~18.04ubuntu1.13+esm3  Ubuntu Pro |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.7 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Fixed 3.7.5-2ubuntu1~18.04.2+esm4  Ubuntu Pro |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.8 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Fixed 3.8.10-0ubuntu1~20.04.12 |
| 18.04 LTS bionic | Fixed 3.8.0-3ubuntu1~18.04.2+esm3  Ubuntu Pro |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| python3.9 | 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 25.04 plucky | Not in release |
| 24.10 oracular | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Fixed 3.9.5-3ubuntu0~20.04.1+esm3  Ubuntu Pro |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2024-6232?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| python3.10 | * Upstream:   [743acbe](https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4) |
| python3.11 | * Upstream:   [d449caf](https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf) |
| python3.12 | * Upstream:   [4eaf489](https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06) |
| python3.13 | * Upstream:   [ed3a49e](https://github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373) |
| python3.6 | * Third-party:   [bfc7d56](https://github.com/openSUSE-Python/cpython/commit/bfc7d56dbdd1ffd53c649975cdf302c4dbdd2129) |
| python3.7 | * Third-party:   [bfc7d56](https://github.com/openSUSE-Python/cpython/commit/bfc7d56dbdd1ffd53c649975cdf302c4dbdd2129) |
| python3.8 | * Upstream:   [7d1f50c](https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d) * Upstream:   <https://github.com/python/cpython/pull/123642> |
| python3.9 | * Upstream:   <https://github.com/python/cpython/pull/123641> * Upstream:   [3f5d9d1](https://github.com/python/cpython/commit/3f5d9d12c74787fbf3f5891835c85cc15526c86d) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-6232)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-6232)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-6232)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-6232)

### Related Ubuntu Security Notices (USN)

+ [USN-7015-1](https://usn.ubuntu.com/USN-7015-1)
+ Python vulnerabilities
+ 16 September 2024

+ [USN-7015-2](https://usn.ubuntu.com/USN-7015-2)
+ Python vulnerabilities
+ 19 September 2024

+ [USN-7015-5](https://usn.ubuntu.com/USN-7015-5)
+ Python vulnerabilities
+ 19 November 2024

+ [USN-7488-1](https://usn.ubuntu.com/USN-7488-1)
+ Python vulnerabilities
+ 6 May 2025

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-6232>
* <https://github.com/python/cpython/pull/121286>
* <https://mail.python.org/archives/list/security-announce@python.org/thread/JRYFTPRHZRTLMZLWQEUHZSJXNHM4ACTY/>
