
Cloud Vulnerability DB
A community-led vulnerabilities database
An issue was discovered in the quinn crate before 0.7.0 for Rust, affecting its handling of socket address data structures. The vulnerability was identified and disclosed on March 4, 2021, impacting all versions of quinn prior to 0.7.0. The issue affects applications using the quinn crate for network communications in Rust (RustSec Advisory).
The vulnerability stems from quinn's incorrect assumption about memory layout compatibility between std::net::SocketAddrV4 and std::net::SocketAddrV6 data structures and their system C representation sockaddr. The crate directly casts pointers to convert socket addresses to system representation without proper validation. This implementation could lead to invalid memory access if the standard library changes its implementation, as the standard library makes no guarantees about memory layout. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (RustSec Advisory).
The vulnerability could result in invalid memory access when using certain versions of the standard library. This could potentially lead to memory corruption or application crashes, particularly affecting systems that rely on the quinn crate for network communications (RustSec Advisory).
The vulnerability can be triggered when the standard library implementation changes its memory layout for socket address structures. No specific exploit has been reported in the wild, but the issue is particularly concerning as it would occur without any warning or error messages (RustSec Advisory).
The issue has been patched in quinn versions 0.5.4, 0.6.2, and 0.7.0 and later. Users are advised to upgrade to these patched versions to prevent potential memory access issues (RustSec Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."