CVE-2026-40170

ngtcp2 has a qlog transport parameter serialization stack buffer overflow

Published Apr 16, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6222-1 ngtcp2 security update
Ubuntu USN Ubuntu USN USN-8300-1 ngtcp2 vulnerability
History
Type Values Removed Values Added
First Time appeared Tatsuhiro-t
Tatsuhiro-t ngtcp2
CPEs cpe:2.3:a:nghttp2:ngtcp2:*:*:*:*:*:*:*:* cpe:2.3:a:tatsuhiro-t:ngtcp2:*:*:*:*:*:*:*:*
Vendors & Products Nghttp2
Nghttp2 ngtcp2
Tatsuhiro-t
Tatsuhiro-t ngtcp2
Type Values Removed Values Added
First Time appeared Nghttp2
Nghttp2 ngtcp2
CPEs cpe:2.3:a:nghttp2:ngtcp2:*:*:*:*:*:*:*:*
Vendors & Products Nghttp2
Nghttp2 ngtcp2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ngtcp2
Ngtcp2 ngtcp2
Vendors & Products Ngtcp2
Ngtcp2 ngtcp2
Type Values Removed Values Added
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.
Title ngtcp2 has a qlog transport parameter serialization stack buffer overflow
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:01 AM
Reserved
Apr 9, 2026, 7:31 PM
Status
Modified
Published
Apr 16, 2026, 10:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Important
Public date
Apr 16, 2026, 9:34 PM