Rust advisories / molecule
Vulnerability CriticalRUSTSEC-2021-0103 · molecule
RUSTSEC-2021-0103: Partial read is incorrect in molecule
Short answerA security vulnerability in the molecule crate: Partial read is incorrect in molecule. GitHub rates it Critical. Fixed in 0.7.2: update to a fixed version.
| Crate | molecule |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.7.2. |
| Fixed in | 0.7.2 |
| Severity | Critical (GitHub rating) |
| Published | 2021-07-30 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2021-45697, GHSA-6p3c-v8vc-c244, GHSA-82hm-vh7g-hrh9 |
What to do
- See which version you have:
cargo tree -i molecule(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p molecule. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplemolecule = "0.7.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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
- Package: crates.io/crates/molecule
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0103.html
- Web: github.com/nervosnetwork/molecule/pull/49
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?