Skip to content
Noroxi
NVD / CVE Program· CNA PSF

CVE-2024-12254: Unbounded memory buffering in SelectorSocketTransport.writelines()

HighCVSS 8.7 · v4.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 35/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 1.8% (FIRST EPSS); higher than 79.6% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: Python Software Foundation CPython 3.12.9, 3.13.2, 3.14.0a3; azl3 python3 3.12.3-5 on Azure Linux 3.0 3.12.3-5.

Low priority for now. Upgrade to Python Software Foundation CPython 3.12.9, 3.13.2, 3.14.0a3; azl3 python3 3.12.3-5 on Azure Linux 3.0 3.12.3-5 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Dec 6, 2024
Updated
Jul 31, 2026
EPSS
1.8% · 79th percentile

Report tools

JSON

Action score

35

Monitor

Low priority for now.

CVSS
34 / 40 · 8.7 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 1.8%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PSF
8.7
NVD has not scored this yet; the score shown is the CNA’s.

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-12254

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
python software foundationcpython

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.

  • Python Software Foundation CPython

    • before 3.12.9affected · python
    • 3.13.0 and later · before 3.13.2affected · python
    • 3.14.0a1 and later · before 3.14.0a3affected · python

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8python3.12before 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-debugbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-develbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-idlebefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-libsbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-rpm-macrosbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-testbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:8python3.12-tkinterbefore 3.12.8-1.el8_103.12.8-1.el8_10
AlmaLinux:9python3.12before 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-debugbefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-develbefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-idlebefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-libsbefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-testbefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
AlmaLinux:9python3.12-tkinterbefore 3.12.5-2.el9_5.23.12.5-2.el9_5.2
Alpine:v3.20python3before 3.12.8-r13.12.8-r1
Debian:13python3.13before 3.13.1-23.13.1-2
openSUSE:Leap 15.6python312before 3.12.9-150600.3.18.13.12.9-150600.3.18.1
openSUSE:Leap 15.6python312before 3.12.8-150600.3.12.13.12.8-150600.3.12.1
openSUSE:Leap 15.6python312-corebefore 3.12.9-150600.3.18.13.12.9-150600.3.18.1
openSUSE:Leap 15.6python312-corebefore 3.12.8-150600.3.12.13.12.8-150600.3.12.1
openSUSE:Leap 15.6python312-documentationbefore 3.12.8-150600.3.12.13.12.8-150600.3.12.1
openSUSE:Leap 15.6python312-documentationbefore 3.12.9-150600.3.18.13.12.9-150600.3.18.1
openSUSE:Tumbleweedpython-aiohttpbefore 3.11.16-1.13.11.16-1.1

+49

Other highest-scoring records for the same primary product.

  • CVE-2026-115557Distrust compromised intermediate certificates in ssl module
    37Monitor
  • CVE-2025-4517Arbitrary writes via tarfile realpath overflow
    37Monitor
  • CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts
    36Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2024-8088Aug 22, 2024 · Infinite loop when iterating over zip archive entry names from zipfile.Path
    34Monitor
  • ← EarlierCVE-2024-11168Nov 12, 2024 · Improper validation of IPv6 and IPvFuture addresses
    25Monitor
  • Later →CVE-2025-0938Jan 31, 2025 · URL parser allowed square brackets in domain names
    25Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Python Software Foundation CPython3.12.9Vendor (CNA)
Python Software Foundation CPython3.13.2Vendor (CNA)
Python Software Foundation CPython3.14.0a3Vendor (CNA)
azl3 python3 3.12.3-5 on Azure Linux 3.03.12.3-5 · CBL-Mariner ReleasesMicrosoft (MSRC)
almalinux:python3.123.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-debug3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-devel3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-idle3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-libs3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-rpm-macros3.12.8-1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:python3.12-test3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
almalinux:python3.12-tkinter3.12.5-2.el9_5.2 · AlmaLinux:9Package registry (OSV)
alpine:python33.12.8-r1 · Alpine:v3.20Package registry (OSV)
debian:python3.133.13.1-2 · Debian:13Package registry (OSV)
opensuse:python-aiohttp3.11.16-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python3123.12.8-150600.3.12.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python312-core3.12.8-150600.3.12.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python312-documentation3.12.8-150600.3.12.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python3133.13.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:python-unversioned-command0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python30:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-debug0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-devel0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-idle0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-libs0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-test0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3-tkinter0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3.120:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3.12-debuginfo0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)
red hat:python3.12-debugsource0:3.12.9-1.el10 · Red Hat:enterprise_linux:10.0Package registry (OSV)

+6

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Not on record for this CVE: EPSS history · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
X

CVSS vector

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

nvd-secondary

Root cause

Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
function expand(node) {  return node.children.map(expand);}

Fixed

ts
const MAX_DEPTH = 32;function expand(node, depth = 0) {  if (depth > MAX_DEPTH) throw new Error("too deep");  return node.children.map((c) => expand(c, depth + 1));}

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

References

All records