Advisory

RUSTSEC-2024-0373

Also known as: CVE-2024-45311, GHSA-vr26-jcq5-fjj8

Summary

Endpoint::retry() calls can lead to panicking

Details

In 0.11.0, we overhauled the server-side Endpoint implementation to enable
more careful handling of incoming connection attempts. However, some of the
code paths that cleaned up state after connection attempts were processed
confused the initial destination connection ID with the destination connection
ID of a substantial package. This resulted in the internal Endpoint state
becoming inconsistent, which could then lead to a panic.

https://github.com/quinn-rs/quinn/commit/e01609ccd8738bd438d86fa7185a0f85598cb58f

Thanks to @finbear for reporting and investingating,
and to @BiagoFesta for coordinating.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2024-09-02 12:00 UTC
Modified
2024-09-08 02:12 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: RustSec Advisory Database · CC0-1.0

Sources & licences