ubuntu-cve-2024-12254
Vulnerability from osv_ubuntu
Published
2024-12-06 16:15
Modified
2026-04-22 07:47
Summary
Details
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.
Severity
7.5 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "idle-python3.12",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "libpython3.12-minimal",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "libpython3.12-stdlib",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "libpython3.12-testsuite",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "libpython3.12t64",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12-examples",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12-full",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12-minimal",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12-nopie",
"binary_version": "3.12.3-1ubuntu0.4"
},
{
"binary_name": "python3.12-venv",
"binary_version": "3.12.3-1ubuntu0.4"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "python3.12",
"purl": "pkg:deb/ubuntu/python3.12@3.12.3-1ubuntu0.4?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.12.3-1ubuntu0.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.12.0-1",
"3.12.0-5",
"3.12.0-6",
"3.12.0-7",
"3.12.1-2",
"3.12.2-1",
"3.12.2-4build3",
"3.12.2-4build4",
"3.12.2-5ubuntu3",
"3.12.3-1",
"3.12.3-1ubuntu0.1",
"3.12.3-1ubuntu0.2",
"3.12.3-1ubuntu0.3"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2024-12254",
"modified": "2026-04-22T07:47:57Z",
"published": "2024-12-06T16:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-12254"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-12254"
},
{
"type": "REPORT",
"url": "https://github.com/python/cpython/pull/127656"
},
{
"type": "REPORT",
"url": "https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/"
},
{
"type": "REPORT",
"url": "http://www.openwall.com/lists/oss-security/2024/12/06/1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7219-1"
}
],
"related": [
"USN-7219-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-12254"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
Loading…
Loading…