Advisory

GHSA-vr26-jcq5-fjj8

Also known as: CVE-2024-45311, RUSTSEC-2024-0373

Summary

Denial of service in quinn-proto when using Endpoint::retry()

Details

Summary

As 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:

  • Calling refuse or ignore on the resulting validated connection, if a duplicate initial packet is received
  • This issue can go undetected until a server's refuse()/ignore() code path is exercised, such as to stop a denial of service attack.
  • 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.
  • This issue can go undetected if clients are well-behaved.

The former situation was observed in a real application, while the latter is only theoretical.

Details

Location of panic: https://github.com/quinn-rs/quinn/blob/bb02a12a8435a7732a1d762783eeacbb7e50418e/quinn-proto/src/endpoint.rs#L213

Impact
Denial of service for internet-facing server

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-09-03 20:49 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

quinn-proto

crates.io · All systems

Affected

  • introduced 0.11.0, fixed 0.11.7 (semver)

Fixed versions

0.11.7

Fix

  • Fixed version 0.11.7
    cargo update -p quinn-proto --precise 0.11.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences