Vulnerability DatabaseRUSTSEC-2021-0021

RUSTSEC-2021-0021
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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.

Mitigation and workarounds

The issue was resolved in nb-connect version 1.0.3. Users should upgrade to this version or later to address the vulnerability.

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management