# CVE-2021-45695: Incorrect reliance on Trait memory layout in mopa

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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): 1.70%, higher than 77% of CVEs (2026-12-01)
- Published: 2021-06-01T12:00:00.000Z
- Modified: 2026-06-17T04:13:57.867Z
- Also known as: GHSA-2gxj-qrp2-53jv, GHSA-8mv5-7x95-7wcf, RUSTSEC-2021-0095
- Assigned by: mitre

## Description

An issue was discovered in the mopa crate through 2021-06-01 for Rust. It incorrectly relies on Trait memory layout, possibly leading to future occurrences of arbitrary code execution or ASLR bypass.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mopa (crates.io): up to 0.2.2; from 0.0.0-0
- mopa_project mopa: up to 0.2.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating High
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0095.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/mopa/RUSTSEC-2021-0095.md> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45695> (advisory)
- <https://github.com/chris-morgan/mopa/issues/13> (report, web)
- <https://github.com/chris-morgan/mopa> (package)
- <https://crates.io/crates/mopa> (package)

## Sources

- CVE List: [CVE-2021-45695](https://www.cve.org/CVERecord?id=CVE-2021-45695), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2gxj-qrp2-53jv](https://github.com/advisories/GHSA-2gxj-qrp2-53jv), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-8mv5-7x95-7wcf](https://github.com/advisories/GHSA-8mv5-7x95-7wcf), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0095](https://rustsec.org/advisories/RUSTSEC-2021-0095.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45695](https://nvd.nist.gov/vuln/detail/CVE-2021-45695), Public domain, modified 2026-06-17

---

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