CVE-2020-35922 – mio
Package
Manager: cargo
Name: mio
Vulnerable Version: >=0.7.0 <0.7.6
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00075 pctl0.23144
Details
mio invalidly assumes the memory layout of std::net::SocketAddr The mio 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:50:33Z
Modified: 2023-06-13T18:42:58Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-pf3p-x6qj-6j7q/GHSA-pf3p-x6qj-6j7q.json
CWE IDs: ["CWE-188"]
Alternative ID: GHSA-pf3p-x6qj-6j7q
Finding: F067
Auto approve: 1