CVE-2025-59530
JSON

7.5high

quic-go has Client Crash Due to Premature HANDSHAKE_DONE Frame

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-47m2-4cr7-mhcwGO-2025-4017

Description

quic-go is an implementation of the QUIC protocol in Go. In versions prior to 0.49.0, 0.54.1, and 0.55.0, a misbehaving or malicious server can cause a denial-of-service (DoS) attack on the quic-go client by triggering an assertion failure, leading to a process crash. This requires no authentication and can be exploited during the handshake phase. This was observed in the wild with certain server implementations. quic-go needs to be able to handle misbehaving server implementations, including those that prematurely send a HANDSHAKE_DONE frame. Versions 0.49.0, 0.54.1, and 0.55.0 discard Initial keys when receiving a HANDSHAKE_DONE frame, thereby correctly handling premature HANDSHAKE_DONE frames.

Affected

Product or packageVersionsReported by
quic-go quic-go< 0.49.1, >= 0.5.0, < 0.54.1CVE List
github.com/quic-go/quic-go (Go)before 0.49.1, from 0.50.0 before 0.54.1GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-617CWE-755

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

quic-go is an implementation of the QUIC protocol in Go. In versions prior to 0.49.0, 0.54.1, and 0.55.0, a misbehaving or malicious server can cause a denial-of-service (DoS) attack on the quic-go client by triggering an assertion failure, leading to a process crash. This requires no authentication and can be exploited during the handshake phase. This was observed in the wild with certain server implementations. quic-go needs to be able to handle misbehaving server implementations, including those that prematurely send a HANDSHAKE_DONE frame. Versions 0.49.0, 0.54.1, and 0.55.0 discard Initial keys when receiving a HANDSHAKE_DONE frame, thereby correctly handling premature HANDSHAKE_DONE frames.

GitHub Advisory Database

Summary

A misbehaving or malicious server can trigger an assertion in a quic-go client (and crash the process) by sending a premature HANDSHAKE_DONE frame during the handshake.

Impact

A misbehaving or malicious server can cause a denial-of-service (DoS) attack on the quic-go client by triggering an assertion failure, leading to a process crash. This requires no authentication and can be exploited during the handshake phase. Observed in the wild with certain server implementations (e.g. Solana's Firedancer QUIC).

Affected Versions

  • All versions prior to v0.49.1 (for the 0.49 branch)
  • Versions v0.50.0 to v0.54.0 (inclusive)
  • Fixed in v0.49.1, v0.54.1, and v0.55.0 onward

Users are recommended to upgrade to the latest patched version in their respective maintenance branch or to v0.55.0 or later.

Details

For a regular 1-RTT handshake, QUIC uses three sets of keys to encrypt / decrypt QUIC packets:

  • Initial keys (derived from a static key and the connection ID)
  • Handshake keys (derived from the client's and server's key shares in the TLS handshake)
  • 1-RTT keys (derived when the TLS handshake finishes)

On the client side, Initial keys are discarded when the first Handshake packet is sent. Handshake keys are discarded when the server's HANDSHAKE_DONE frame is received, as specified in section 4.9.2 of RFC 9001. Crucially, Initial keys are always dropped before Handshake keys in a standard handshake.

Due to packet reordering, it is possible to receive a packet with a higher encryption level before the key for that encryption level has been derived. For example, the server's Handshake packets (containing, among others, the TLS certificate) might arrive before the server's Initial packet (which contains the TLS ServerHello). In that case, the client queues the Handshake packets and decrypts them as soon as it has processed the ServerHello and derived Handshake keys.

After completion of the handshake, Initial and Handshake packets are not needed anymore and will be dropped. quic-go implements an assertion that no packets are queued after completion of the handshake.

A misbehaving or malicious server can trigger this assertion, and thereby cause a panic, by sending a HANDSHAKE_DONE frame before actually completing the handshake. In that case, Handshake keys would be dropped before Initial keys.

This can only happen if the server implementation is misbehaving: the server can only complete the handshake after receiving the client's TLS Finished message (which is sent in Handshake packets).

The Fix

quic-go needs to be able to handle misbehaving server implementations, including those that prematurely send a HANDSHAKE_DONE frame. We now discard Initial keys when receiving a HANDSHAKE_DONE frame, thereby correctly handling premature HANDSHAKE_DONE frames. The fix was implemented in https://github.com/quic-go/quic-go/pull/5354.

Go Vulnerability Database

Panic occurs when queuing undecryptable packets after handshake completion in github.com/quic-go/quic-go

NVD (es)

quic-go es una implementación del protocolo QUIC en Go. En versiones anteriores a la 0.49.0, 0.54.1 y 0.55.0, un servidor malintencionado o con comportamiento anómalo puede causar un ataque de denegación de servicio (DoS) en el cliente quic-go al desencadenar un fallo de aserción, lo que lleva a un bloqueo del proceso. Esto no requiere autenticación y puede ser explotado durante la fase de handshake. Esto se observó en la práctica con ciertas implementaciones de servidor. quic-go necesita poder manejar implementaciones de servidor con comportamiento anómalo, incluyendo aquellas que envían prematuramente un frame HANDSHAKE_DONE. Las versiones 0.49.0, 0.54.1 y 0.55.0 descartan las claves iniciales al recibir un frame HANDSHAKE_DONE, manejando así correctamente los frames HANDSHAKE_DONE prematuros.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-59530 changed 2025-10-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-47m2-4cr7-mhcw changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4017 changed 2026-08-07CC-BY-4.0
NVDCVE-2025-59530 changed 2026-10-19Public domain