{"id":"CVE-2021-45697","aliases":["GHSA-6p3c-v8vc-c244","GHSA-82hm-vh7g-hrh9","RUSTSEC-2021-0103"],"url":"https://o3.security/vulnerability/CVE-2021-45697","summary":"The `total_size` function for partial read the length of any `FixVec` is incorrect in molecule.","details":"Anyone who uses total_size(..) function to partial read the length of any FixVec will get an incorrect result, due to an incorrect implementation. This has been resolved in the 0.7.2 release.","published":"2021-12-27T00:15:09.540Z","modified":"2026-07-09T01:06:41.672779Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01318,"percentile":0.69428,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"molecule","fixedVersion":"0.7.2"}],"fix":{"url":"https://github.com/nervosnetwork/molecule/pull/49","label":"nervosnetwork/molecule#49"},"references":[{"type":"ADVISORY","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/molecule/RUSTSEC-2021-0103.md"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0103.html"},{"type":"WEB","url":"https://github.com/nervosnetwork/molecule/security/advisories/GHSA-82hm-vh7g-hrh9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45697"},{"type":"WEB","url":"https://github.com/nervosnetwork/molecule/pull/49"},{"type":"PACKAGE","url":"https://github.com/nervosnetwork/molecule"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T01:06:41.672779Z"}}