8.7

CVE-2024-12254: python software foundation cpython Uncontrolled Resource Consumption

CVSS: 8.7v4.0HighDeferred
AliasesALPINE-CVE-2024-12254SUSE-SU-2024:4291-1UBUNTU-CVE-2024-12254
Published 06-12-2024Last modified 31-07-2026

Vulnerability summary

CVE-2024-12254 is a high (CVSS 8.7) Uncontrolled Resource Consumption vulnerability in python software foundation cpython. EPSS estimates a 1.87% chance of exploitation in the next 30 days, higher than 79% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
1.87%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 3

Timeline

  1. 06-12-2024
    PublishedVulnerability first disclosed.
  2. 31-07-2026
    Last modifiedVulnerability information updated.

Description

Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not periodically drain the write buffer potentially leading to memory exhaustion. This vulnerability likely impacts a small number of users, you must be using Python 3.12.0 or later, on macOS or Linux, using the asyncio module with protocols, and using .writelines() method which had new zero-copy-on-write behavior in Python 3.12.0 and later. If not all of these factors are true then your usage of Python is unaffected.

CVSS metrics

10 scores · 7 sources · 2 versions

EPSS trend

Probability

1.87%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

0.00 pp

From 1.87% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.87%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Opensuse6 products
  • python-aiohttp&distro=openSUSE Tumbleweed< 3.11.16-1.1
  • python312-core&distro=openSUSE Leap 15.6< 3.12.8-150600.3.12.1
  • python312-documentation&distro=openSUSE Leap 15.6< 3.12.8-150600.3.12.1
  • python312&distro=openSUSE Leap 15.6< 3.12.8-150600.3.12.1
  • python312&distro=openSUSE Tumbleweed< 3.12.8-1.1
Chainguard2 products
  • python-3.12< 3.12.8-r1
  • python-3.13< 3.13.1-r1
Suse2 products
  • python312-core&distro=SUSE Linux Enterprise Module for Python 3 15 SP6< 3.12.8-150600.3.12.1
  • python312&distro=SUSE Linux Enterprise Module for Python 3 15 SP6< 3.12.8-150600.3.12.1
Wolfi2 products
  • python-3.12< 3.12.8-r1
  • python-3.13< 3.13.1-r1
Alpine1 product
  • python3< 3.12.8-r1
Debian1 product
  • python3.13< 3.13.1-2
Python software foundation1 product
  • cpython< 3.12.9 | ≥ 3.13.0, < 3.13.2 | ≥ 3.14.0a1, < 3.14.0a3
Ubuntu1 product
  • python3.12< 3.12.3-1ubuntu0.4

8 vendors · 16 products

References

22 links
Show all 22 references