# CVE-2021-28036: quinn invalidly assumes the memory layout of std::net::SocketAddr

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-03-04T12:00:00.000Z
- Modified: 2026-06-17T03:45:45.507Z
- Also known as: GHSA-fhv4-fx3v-77w6, RUSTSEC-2021-0035
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

An issue was discovered in the quinn crate before 0.7.0 for Rust. It may have invalid memory access for certain versions of the standard library because it relies on a direct cast of std::net::SocketAddrV4 and std::net::SocketAddrV6 data structures.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- quinn (crates.io): before 0.5.4; from 0.6.0 before 0.6.2; from 0.0.0-0 before 0.5.4; from 0.6.0-0 before 0.6.2; from 0.7.0-0 before 0.7.0
- quinn_project quinn: before 0.5.4; from 0.6.0 before 0.6.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0035.html> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28036> (advisory)
- <https://github.com/quinn-rs/quinn/issues/968> (report, web)
- <https://github.com/quinn-rs/quinn> (package)
- <https://crates.io/crates/quinn> (package)

## Sources

- CVE List: [CVE-2021-28036](https://www.cve.org/CVERecord?id=CVE-2021-28036), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fhv4-fx3v-77w6](https://github.com/advisories/GHSA-fhv4-fx3v-77w6), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0035](https://rustsec.org/advisories/RUSTSEC-2021-0035.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-28036](https://nvd.nist.gov/vuln/detail/CVE-2021-28036), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28036 · Whole record: https://cve.day/CVE-2021-28036.json · Rebuilt by cve.day 2026-11-25T22:58:00.156Z
