CVE-2021-45697
The `total_size` function for partial read the length of any `FixVec` is incorrect in molecule.
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
An issue was discovered in the molecule crate before 0.7.2 for Rust. A FixVec partial read has an incorrect result.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| cargo::GitHub Security Advisory Rust | molecule | 0.7.2 |
References
- https://github.com/nervosnetwork/molecule
- https://github.com/nervosnetwork/molecule/pull/49
- https://github.com/nervosnetwork/molecule/security/advisories/GHSA-82hm-vh7g-hrh9
- https://nvd.nist.gov/vuln/detail/CVE-2021-45697
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/molecule/RUSTSEC-2021-0103.md
- https://rustsec.org/advisories/RUSTSEC-2021-0103.html