# CVE-2026-40170: ngtcp2 has a qlog transport parameter serialization stack buffer overflow

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-04-16T21:34:07.610Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-120, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

ngtcp2 is a C implementation of the IETF QUIC protocol. In versions prior to 1.22.1, ngtcp2_qlog_parameters_set_transport_params() serializes peer transport parameters into a fixed 1024-byte stack buffer without bounds checking. When qlog is enabled, a remote peer can send sufficiently large transport parameters during the QUIC handshake to cause writes beyond the buffer boundary, resulting in a stack buffer overflow. This affects deployments that enable the qlog callback and process untrusted peer transport parameters. This issue has been fixed in version 1.22.1. If developers are unable to immediately upgrade, they can disable the qlog on client.

(As written by CVE List.)

## Affected

- ngtcp2 ngtcp2: < 1.22.1
- samba: no versions given (not affected: from 0:4.23.5-109.el10_2 before *; from 0:4.23.5-10.el9_8 before *)
- ngtcp2-main: no versions given (not affected: from 1.22.1-1.hum1 before *)
- nodejs22: no versions given
- nodejs24: no versions given
- nodejs: no versions given
- nodejs:20/nodejs: no versions given
- nodejs:22/nodejs: no versions given
- nodejs:24/nodejs: no versions given
- tatsuhiro-t ngtcp2: before 1.22.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-f523-465f-8c8f> (exploit, mitigation, patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/04/17/12> (exploit, mailing-list, mitigation, patch, third-party-advisory)
- <https://github.com/ngtcp2/ngtcp2/commit/708a7640c1f48fb8ffb540c4b8ea5b4c1dfb8ee5> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-40170> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2459061> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40170.json>
- <https://access.redhat.com/errata/RHSA-2026:22963> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25049> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:9113> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-40170](https://www.cve.org/CVERecord?id=CVE-2026-40170), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2026-40170](https://nvd.nist.gov/vuln/detail/CVE-2026-40170), Public domain, modified 2026-11-11

---

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