CVE-2025-7054: Quiche Quiche Connection ID Retirement Can Vulnerability
HIGHCVE-2025-7054 is a HIGH quiche connection id retirement can vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Quiche libraries in the crates.io ecosystem. The issue involves quiche connection id retirement can trigger an infinite loop. Remediation is available by upgrading affected packages to version 0.24.5.
CVE-2025-7054 at a Glance
How to Fix CVE-2025-7054
To remediate this vulnerability, upgrade all affected Quiche dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade quiche to 0.24.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for quiche
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-7054, inspect your project dependencies for Quiche:
inspect dependencies for quiche
Analyze the terminal output to locate any version of Quiche in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Quiche, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-7054 Affected Quiche Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
quiche
|
crates.io |
≥ 0.15.0
< 0.24.5
|
0.24.5
|
References
Frequently Asked Questions
What is CVE-2025-7054?
Which Quiche versions are affected?
What version fixes CVE-2025-7054?
Is quiche affected?
What CWE is associated with CVE-2025-7054?
How can I check crates.io dependencies for CVE-2025-7054?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m3hh-f9gh-74c2",
"modified" : "2025-08-07T20:53:40Z",
"published" : "2025-08-07T20:53:40Z",
"aliases" : [ "CVE-2025-7054" ],
"summary" : "quiche connection ID retirement can trigger an infinite loop",
"details" : "## Impact\n\nCloudflare quiche was discovered to be vulnerable to an infinite loop when sending packets containing RETIRE_CONNECTION_ID frames.\n\nQUIC 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\n\nAn 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.16) 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.\n\n## Patches\n\nquiche 0.24.5 is the earliest version containing the fix for the issue",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "quiche"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.15.0"
}, {
"fixed" : "0.24.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cloudflare/quiche/security/advisories/GHSA-m3hh-f9gh-74c2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-7054"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cloudflare/quiche"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-07T20:53:40Z",
"nvd_published_at" : "2025-08-07T16:15:31Z"
}
}