CVE-2025-7054 Infinite loop triggered by connection ID retirement

High 8.7 Published Updated

An unauthenticated remote attacker can cause a denial of service in the quiche library by triggering an infinite loop during connection ID retirement.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-7054?

CVE-2025-7054 is a high-severity denial of service vulnerability in Cloudflare quiche, published on 7 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Cloudflare quiche was discovered to be vulnerable to an infinite loop when sending packets containing RETIRE_CONNECTION_ID frames.

QUIC connections possess a set of connection identifiers (IDs); see Section 5.1 of RFC 9000 https://datatracker.ietf.org/doc/html/rfc9000#section-5.1 . Once the QUIC handshake completes, a local endpoint is responsible for issuing and retiring Connection IDs that are used by the remote peer to populate the Destination Connection ID field in packets sent from remote to local. Each Connection ID has a sequence number to ensure synchronization between peers.

An unauthenticated remote attacker can exploit this vulnerability by first completing a handshake and then sending a specially-crafted set of frames that trigger a connection ID retirement in the victim. When the victim attempts to send a packet containing RETIRE_CONNECTION_ID frames, Section 19.16 of RFC 9000 https://datatracker.ietf.org/doc/html/rfc9000#section-19.6 requires that the sequence number of the retired connection ID must not be the same as the sequence number of the connection ID used by the packet. In other words, a packet cannot contain a frame that retires itself. In scenarios such as path migration, it is possible for there to be multiple active paths with different active connection IDs that could be used to retire each other. The exploit triggered an unintentional behaviour of a quiche design feature that supports retirement across paths while maintaining full connection ID synchronization, leading to an infinite loop.This issue affects quiche: from 0.15.0 before 0.24.5.

Weakness: CWE-835

Which versions are affected by CVE-2025-7054?

2 open source packages ship an affected version, including quiche. It affects 1 product.

PackageAffectedFixed in
quiche crates.ioFrom 0.15.00.24.5
quiche crates.ioFrom 0.15.00.24.5

Products include Cloudflare Quiche.

How do I fix CVE-2025-7054?

Upgrade quiche to 0.24.5 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-7054 being exploited?

There is no known exploitation of CVE-2025-7054 in the wild and no public exploit code.

Sources

Also known as GHSA-m3hh-f9gh-74c2.

Is CVE-2025-7054 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free