# CVE-2026-3298: Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes

- Severity: High 8.8 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-04-21T14:45:01.919Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: PSF-0000-CVE-2026-3298, BIT-LIBPYTHON-2026-3298, BIT-PYTHON-2026-3298, BIT-PYTHON-MIN-2026-3298, PSF-2026-20
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0a1 before 3.14.5rc1; from 3.15.0a1 before 3.15.0b1
- https://github.com/python/cpython: before 1274766d3c29007ab77245a72abbf8dce2a9db4d; before 27522b7d6e6588f03e61099dd858cd5a9314e2f2; before 95633d2aad4721e25e4dfd9f43dfb6e1edcbd741; before 6c8b85b3f1d83d5697ec19880960e1eacee56688; before f5ca38739241fe7a40a4b116d5a8a1364dd6fea7
- libpython (Bitnami): before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5
- python (Bitnami): before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5
- python-min (Bitnami): before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5

## Every score

- PSF: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/pull/148809> (patch, web)
- <https://github.com/python/cpython/issues/148808> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/KWTPIQBOOOUNQP7UFSLBI437NJDFLA3F/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/1274766d3c29007ab77245a72abbf8dce2a9db4d> (fix, patch, web)
- <https://github.com/python/cpython/commit/27522b7d6e6588f03e61099dd858cd5a9314e2f2> (fix, patch, web)
- <https://github.com/python/cpython/commit/95633d2aad4721e25e4dfd9f43dfb6e1edcbd741> (fix, patch, web)
- <https://github.com/python/cpython/commit/6c8b85b3f1d83d5697ec19880960e1eacee56688> (fix, patch, web)
- <https://github.com/python/cpython/commit/f5ca38739241fe7a40a4b116d5a8a1364dd6fea7> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-3298> (web)

## Sources

- CVE List: [CVE-2026-3298](https://www.cve.org/CVERecord?id=CVE-2026-3298), CVE Terms of Use, modified 2026-08-13
- Python Software Foundation: [PSF-0000-CVE-2026-3298](https://osv.dev/vulnerability/PSF-0000-CVE-2026-3298), CC-BY-4.0, modified 2026-07-06
- Python Software Foundation: [PSF-2026-20](https://osv.dev/vulnerability/PSF-2026-20), CC-BY-4.0, modified 2026-08-10
- NVD: [CVE-2026-3298](https://nvd.nist.gov/vuln/detail/CVE-2026-3298), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-3298](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-3298), Apache-2.0, modified 2026-08-19
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-3298](https://osv.dev/vulnerability/BIT-PYTHON-2026-3298), Apache-2.0, modified 2026-08-19
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-3298](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-3298), Apache-2.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-3298 · Whole record: https://cve.day/CVE-2026-3298.json · Rebuilt by cve.day 2026-11-25T22:59:19.108Z
