CVE-2021-28036 – quinn
Package
Manager: cargo
Name: quinn
Vulnerable Version: >=0 <0.5.4 || >=0.6.0 <0.6.2
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00353 pctl0.56946
Details
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.
Metadata
Created: 2021-08-25T20:52:05Z
Modified: 2023-06-13T20:31:29Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-fhv4-fx3v-77w6/GHSA-fhv4-fx3v-77w6.json
CWE IDs: ["CWE-119"]
Alternative ID: GHSA-fhv4-fx3v-77w6
Finding: F316
Auto approve: 1