Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. quiche
  4. ›
  5. CVE-2025-7054

CVE-2025-7054: quiche connection ID retirement can trigger an infinite loop

August 7, 2025

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. 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 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.

References

  • github.com/advisories/GHSA-m3hh-f9gh-74c2
  • github.com/cloudflare/quiche
  • github.com/cloudflare/quiche/security/advisories/GHSA-m3hh-f9gh-74c2
  • nvd.nist.gov/vuln/detail/CVE-2025-7054

Code Behaviors & Features

Detect and mitigate CVE-2025-7054 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.15.0 before 0.24.5

Fixed versions

  • 0.24.5

Solution

Upgrade to version 0.24.5 or above.

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

cargo/quiche/CVE-2025-7054.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:45 +0000.