
Cloud Vulnerability DB
A community-led vulnerabilities database
The nb-connect crate before version 1.0.3 for Rust contained a vulnerability related to invalid memory access. The issue was discovered and tracked as RUSTSEC-2021-0021, affecting systems using specific versions of the Rust standard library. The vulnerability stemmed from unsafe assumptions about the memory layout of std::net::SocketAddrV4 and std::net::SocketAddrV6 data structures (GitHub Issue).
The vulnerability arose from the crate's direct casting of std::net::SocketAddrV4 and std::net::SocketAddrV6 data structures, assuming they were layout-compatible with sockaddr. This assumption was not guaranteed by the Rust standard library, potentially leading to undefined behavior. The issue involved unsafe code that performed direct memory operations without proper validation of structure layouts (GitHub Issue).
The vulnerability could result in invalid memory access, potentially leading to memory corruption, application crashes, or undefined behavior in systems using the affected versions of the nb-connect crate.
The issue was resolved in nb-connect version 1.0.3. Users should upgrade to this version or later to address the vulnerability.
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."