CVE-2026-3298: Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
The method "sock_recvfrom_into()" of "asyncio.ProacterEventLoop" (Windows only) was missing a boundary check for the data buffer when using nbytes parameter. This allowed for an out-of-bounds buffer write if data was larger than the buffer size. Non-Windows platforms are not affected.
Security readout for executives and security teams
Plain-English summary
A Windows-only CPython networking flaw can write beyond an application's memory buffer when affected asyncio code receives more data than the buffer allows. A reachable service using this specific API pattern could crash or suffer memory corruption. Linux and other non-Windows systems are not affected.
Executive priority
Treat as a high-priority, targeted remediation rather than an enterprise-wide emergency. Quickly identify Windows Python network services using the affected asyncio method, prioritize externally reachable instances, and apply vendor-fixed builds. The absence of documented active exploitation lowers immediate crisis urgency but does not reduce the memory-corruption risk.
Technical view
asyncio.ProacterEventLoop.sock_recvfrom_into() lacked a boundary check when the nbytes parameter exceeded the supplied buffer capacity. An oversized received datagram could therefore cause a CWE-787 out-of-bounds write. CVSS 4.0 rates it 8.8: network-reachable, low complexity, no privileges or user interaction, with high availability impact and limited confidentiality and integrity impact.
Likely exposure
Exposure requires Windows CPython software that calls sock_recvfrom_into() with nbytes and can receive attacker-controlled network data larger than the destination buffer. The supplied record lists CPython 3.12.0, 3.13.0, 3.14.0a1, and 3.15.0a1, but does not establish complete affected version ranges. Inventory actual runtime versions and application call paths.
Exploitation context
The CVSS vector indicates potential remote, low-complexity exploitation without privileges or user interaction. However, the bundle provides no evidence of exploitation in the wild, and the CVE is not listed as KEV. Practical reachability depends on an application using the vulnerable Windows asyncio API with unsafe nbytes handling.
Researcher notes
The vulnerable condition is narrower than merely running Python on Windows: the application must use ProactorEventLoop.sock_recvfrom_into() with nbytes and an undersized buffer. The source bundle links multiple CPython patches, but does not specify complete vulnerable or fixed release ranges. Validate fixes against the vendor advisory and referenced commits without extrapolating unsupported versions.
Mitigation direction
Follow the Python security advisory and install an official release containing the referenced boundary-check patches.
Prioritize internet-facing Windows services using asyncio datagram receive operations.
Until updated, avoid passing nbytes values greater than the destination buffer capacity.
Restrict untrusted network access to affected services where operationally feasible.
Validation and detection
Confirm affected applications run CPython on Windows; exclude non-Windows deployments.
Search application and dependency code for sock_recvfrom_into() calls using nbytes.
Verify nbytes never exceeds the writable destination buffer size.
Confirm the installed CPython build includes the vendor's referenced fix.
Re-test affected network receive paths after updating.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-787: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-787 · source CWE mapping
Out-of-bounds Write
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.