Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. molecule
  4. ›
  5. CVE-2021-45697

CVE-2021-45697: The `total_size` function for partial read the length of any `FixVec` is incorrect in molecule.

January 6, 2022 (updated June 13, 2023)

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.

References

  • github.com/advisories/GHSA-6p3c-v8vc-c244
  • github.com/nervosnetwork/molecule
  • github.com/nervosnetwork/molecule/pull/49
  • github.com/nervosnetwork/molecule/security/advisories/GHSA-82hm-vh7g-hrh9
  • nvd.nist.gov/vuln/detail/CVE-2021-45697
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/molecule/RUSTSEC-2021-0103.md
  • rustsec.org/advisories/RUSTSEC-2021-0103.html

Code Behaviors & Features

Detect and mitigate CVE-2021-45697 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.7.2

Fixed versions

  • 0.7.2

Solution

Upgrade to version 0.7.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

cargo/molecule/CVE-2021-45697.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:04 +0000.