{"id":"GHSA-465w-v9q3-7j98","aliases":["GHSA-465w-v9q3-7j98","RUSTSEC-2026-0338"],"related":[],"kind":"vulnerability","state":"published","title":"Remote peer can panic quinn-proto with zero-length STREAM frames during unordered reads","summary":"When a stream is read in unordered mode (for example through `RecvStream::read(false)` in\nquinn-proto or `read_unordered` in `quinn`), quinn-proto proactively deduplicates received data\nby recording received ranges in a `RangeSet` through its `replace` method. When an incoming\nSTREAM frame carried an empty payload, the `Drop` implementation of the iterator returned by\n`replace` inserted an empty range into the set, violating the invariant that stored ranges are\nnon-empty. Subsequent frames overlapping that region then caused a panic while processing the\nstream.\n\nA remote peer can trigger this with five small STREAM frames (two of them zero-length) once the\napplication has put the stream in unordered-read mode. The default ordered read path is not\naffected.\n\nThe flaw was corrected in 0.11.18 by ignoring empty ranges in `RangeSet::replace`.\n\nThanks to Otto Hermann ([@ojhermann](https://github.com/ojhermann)) for reporting this issue.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"When a stream is read in unordered mode (for example through `RecvStream::read(false)` in\nquinn-proto or `read_unordered` in `quinn`), quinn-proto proactively deduplicates received data\nby recording received ranges in a `RangeSet` through its `replace` method. When an incoming\nSTREAM frame carried an empty payload, the `Drop` implementation of the iterator returned by\n`replace` inserted an empty range into the set, violating the invariant that stored ranges are\nnon-empty. Subsequent frames overlapping that region then caused a panic while processing the\nstream.\n\nA remote peer can trigger this with five small STREAM frames (two of them zero-length) once the\napplication has put the stream in unordered-read mode. The default ordered read path is not\naffected.\n\nThe flaw was corrected in 0.11.18 by ignoring empty ranges in `RangeSet::replace`.\n\nThanks to Otto Hermann ([@ojhermann](https://github.com/ojhermann)) for reporting this issue.","format":"markdown","source":"rustsec"}],"published":"2026-09-14T12:00:00.000Z","modified":"2026-10-12T18:15:01.969Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.11.18"}],"ecosystem":"crates.io","package":"quinn-proto","purl":"pkg:cargo/quinn-proto","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/quinn-proto","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0338.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/quinn-rs/quinn/pull/2868","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0338","url":"https://rustsec.org/advisories/RUSTSEC-2026-0338.html","licence":"CC0-1.0","modified":"2026-10-12T18:15:01.969Z"}],"updatedAt":"2026-11-25T22:56:43.426Z"}