CVE-2024-45311: Quinn proto :retry()` Vulnerability
HIGHCVE-2024-45311 is a HIGH (CVSS 7.5) :retry()` vulnerability (CWE-670: Always-Incorrect Control Flow Implementation) affecting Quinn proto libraries in the crates.io ecosystem. The issue involves :retry()`. Remediation is available by upgrading affected packages to version 0.11.7.
CVE-2024-45311 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-45311
To remediate this vulnerability, upgrade all affected Quinn proto 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 quinn-proto to 0.11.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for quinn-proto
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-45311, inspect your project dependencies for Quinn proto:
inspect dependencies for quinn-proto
Analyze the terminal output to locate any version of Quinn proto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.7), 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-670: Always-Incorrect Control Flow Implementation, where the code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated. In Quinn proto, 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-2024-45311 Affected Quinn proto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
quinn-proto
|
crates.io |
≥ 0.11.0
< 0.11.7
|
0.11.7
|
References
Frequently Asked Questions
What is CVE-2024-45311?
Which Quinn proto versions are affected?
What version fixes CVE-2024-45311?
Is quinn-proto affected?
What is the CVSS score of CVE-2024-45311?
What CWE is associated with CVE-2024-45311?
How can I check crates.io dependencies for CVE-2024-45311?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vr26-jcq5-fjj8",
"modified" : "2024-09-09T14:20:32Z",
"published" : "2024-09-03T20:49:26Z",
"aliases" : [ "CVE-2024-45311" ],
"summary" : "Denial of service in quinn-proto when using `Endpoint::retry()`",
"details" : "### Summary\n\nAs of quinn-proto 0.11, it is possible for a server to `accept()`, `retry()`, `refuse()`, or `ignore()` an `Incoming` connection. However, calling `retry()` on an unvalidated connection exposes the server to a likely panic in the following situations:\n\n- Calling `refuse` or `ignore` on the resulting validated connection, if a duplicate initial packet is received\n - This issue can go undetected until a server's `refuse()`/`ignore()` code path is exercised, such as to stop a denial of service attack.\n- Accepting when the initial packet for the resulting validated connection fails to decrypt or exhausts connection IDs, if a similar initial packet that successfully decrypts and doesn't exhaust connection IDs is received.\n - This issue can go undetected if clients are well-behaved.\n\nThe former situation was observed in a real application, while the latter is only theoretical.\n\n### Details\n\nLocation of panic: https://github.com/quinn-rs/quinn/blob/bb02a12a8435a7732a1d762783eeacbb7e50418e/quinn-proto/src/endpoint.rs#L213\n\n### Impact\nDenial of service for internet-facing server",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"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" : "quinn-proto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.11.0"
}, {
"fixed" : "0.11.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/quinn-rs/quinn/security/advisories/GHSA-vr26-jcq5-fjj8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45311"
}, {
"type" : "WEB",
"url" : "https://github.com/quinn-rs/quinn/commit/e01609ccd8738bd438d86fa7185a0f85598cb58f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quinn-rs/quinn"
}, {
"type" : "WEB",
"url" : "https://github.com/quinn-rs/quinn/blob/bb02a12a8435a7732a1d762783eeacbb7e50418e/quinn-proto/src/endpoint.rs#L213"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0373.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-670" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-03T20:49:26Z",
"nvd_published_at" : "2024-09-02T18:15:37Z"
}
}