Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWZodjQtZngzdi03N3c2
quinn invalidly assumes the memory layout of std::net::SocketAddr
The quinn crate has assumed std::net::SocketAddrV4 and std::net::SocketAddrV6 have the same memory layout as the system C representation sockaddr. It has simply casted the pointers to convert the socket addresses to the system representation. The standard library does not say anything about the memory layout, and this will cause invalid memory access if the standard library changes the implementation. No warnings or errors will be emitted once the change happens.
Permalink: https://github.com/advisories/GHSA-fhv4-fx3v-77w6JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWZodjQtZngzdi03N3c2
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 3 years ago
Updated: over 1 year ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-fhv4-fx3v-77w6, CVE-2021-28036
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-28036
- https://github.com/quinn-rs/quinn/issues/968
- https://rustsec.org/advisories/RUSTSEC-2021-0035.html
- https://github.com/advisories/GHSA-fhv4-fx3v-77w6
Blast Radius: 23.1
Affected Packages
cargo:quinn
Dependent packages: 146Dependent repositories: 1,193
Downloads: 18,415,406 total
Affected Version Ranges: >= 0.6.0, < 0.6.2, < 0.5.4
Fixed in: 0.6.2, 0.5.4
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.6.0, 0.6.1
All unaffected versions: 0.5.4, 0.6.2, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.11.6