CVE-2026-55991: Ngtcp2 Invalid Application Error Code

Passing `-1` as an application error code to `ngtcp2_ccerr_set_application_error` or `ngtcp2_connection_close_error_set_application_error` causes an implicit cast to `UINT64_MAX`. This exceeds the maximum value for a QUIC variable-length integer (62 bits) and will cause an assertion failure in libngtcp2 during serialization. Pass a valid application error co

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-55991-ngtcp2-invalid-application-error-code --engine opengrep

Description

Passing `-1` as an application error code to `ngtcp2_ccerr_set_application_error` or `ngtcp2_connection_close_error_set_application_error` causes an implicit cast to `UINT64_MAX`. This exceeds the maximum value for a QUIC variable-length integer (62 bits) and will cause an assertion failure in libngtcp2 during serialization. Pass a valid application error co