CVE-2021-28036Published Mar 5, 2021 · Mar 5Updated Oct 24
quinn invalidly assumes the memory layout of std::net::SocketAddr
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| quinn crates.io |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| quinn crates.io |
|
|
An issue was discovered in the quinn crate before 0.7.0 for Rust. It may have invalid memory access for certain versions of the standard library because it relies on a direct cast of std::net::SocketAddrV4 and std::net::SocketAddrV6 data structures.
From the CVE record · mitre
The Rust quinn crate directly casts std::net::SocketAddrV4 and SocketAddrV6 data structures, which may cause invalid memory access with certain standard-library versions. The input does not specify how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Engineers using the crates.io quinn package should check versions before 0.5.4, from 0.6.0 before 0.6.2, and pre-0.7.0 releases.