# CVE-2020-35922: mio invalidly assumes the memory layout of std::net::SocketAddr

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-11-02T12:00:00.000Z
- Modified: 2026-06-17T03:14:36.733Z
- Also known as: GHSA-pf3p-x6qj-6j7q, RUSTSEC-2020-0081
- Weaknesses: CWE-188
- Assigned by: mitre

## Description

An issue was discovered in the mio crate before 0.7.6 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mio (crates.io): from 0.7.0 before 0.7.6
- mio_project mio: from 0.7.0 before 0.7.6

## Every score

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

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0081.html> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35922> (advisory)
- <https://github.com/tokio-rs/mio/issues/1386> (report, web)
- <https://github.com/tokio-rs/mio/pull/1388> (web)
- <https://github.com/tokio-rs/mio/commit/152e0751f0be1c9b0cbd6778645b76bcb0eba93c> (web)
- <https://github.com/tokio-rs/mio> (package)
- <https://crates.io/crates/mio> (package)

## Sources

- CVE List: [CVE-2020-35922](https://www.cve.org/CVERecord?id=CVE-2020-35922), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-pf3p-x6qj-6j7q](https://github.com/advisories/GHSA-pf3p-x6qj-6j7q), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0081](https://rustsec.org/advisories/RUSTSEC-2020-0081.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-35922](https://nvd.nist.gov/vuln/detail/CVE-2020-35922), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35922 · Whole record: https://cve.day/CVE-2020-35922.json · Rebuilt by cve.day 2026-11-25T22:57:56.657Z
