Buffer Overflow Affecting ngtcp2/ngtcp2 package, versions [,1.22.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.78% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-NGTCP2NGTCP2-16323270
  • published30 Apr 2026
  • disclosed16 Apr 2026
  • creditKherrisan

Introduced: 16 Apr 2026

CVE-2026-40170  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade ngtcp2/ngtcp2 to version 1.22.1 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow in the qlog process when handling untrusted QUIC peer transport parameters. An attacker can cause a denial of service by sending specially crafted, large transport parameters that trigger writes beyond a fixed-size buffer. This is only exploitable if the qlog callback is enabled during compilation and runtime.

Workaround

This vulnerability can be mitigated by disabling the qlog callback in applications utilizing the affected library and restarting the applications.

CVSS Base Scores

version 4.0
version 3.1