CVE-2021-28036: 
Rust vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Mitigation and workarounds

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

Additional resources


Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-6w6g-hm98-mhgmHIGH8.7
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
GHSA-5j98-2g5x-46v6HIGH7.5
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
GHSA-cjcg-cxmh-9wcrHIGH7.5
  • Rust logoRust
  • praxis-proxy
NoYesOct 02, 2026
GHSA-6f2x-v7q7-m7m5MEDIUM6.9
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
RUSTSEC-2026-0333NONEN/A
  • Rust logoRust
  • noyalib
NoYesOct 06, 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