CVE-2021-45695 json
Incorrect reliance on Trait memory layout in mopa
published 2021-06-01 5 y ago modified 2026-06-17 4 mo ago also GHSA-2gxj-qrp2-53jv , GHSA-8mv5-7x95-7wcf , RUSTSEC-2021-0095 , EUVD-2022-0425
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Exploit prediction
1.70% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | mopa | <=0.2.2 >=0.0.0-0 |
no fix listed |
References
-
rustsec.org
/advisories/RUSTSEC-2021-0095.html
web, third-party-advisory, advisory
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/mopa/RUSTSEC-2021-0095.md
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-45695
advisory
-
github.com
/chris-morgan/mopa/issues/13
web, report
-
github.com
/chris-morgan/mopa
package
-
crates.io
/crates/mopa
package
Sources
- CVE List CVE-2021-45695
- GitHub Advisory GHSA-2gxj-qrp2-53jv
- GitHub Advisory GHSA-8mv5-7x95-7wcf
- NVD CVE-2021-45695
- OSV RUSTSEC-2021-0095
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.