---
id: CVE-2021-45697
aliases:
  - RUSTSEC-2021-0103
  - GHSA-6p3c-v8vc-c244
  - GHSA-82hm-vh7g-hrh9
title: ' Partial read is incorrect in molecule'
summary: ' Partial read is incorrect in molecule'
severity: none
vendor: molecule
product: molecule
ecosystem: rust
affected:
  - 'molecule >= 0.0.0-0, < 0.7.2'
patched:
  - molecule 0.7.2
published: '2021-07-30'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:03.464339634Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2021-0103'
references:
  - url: 'https://crates.io/crates/molecule'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2021-0103.html'
  - url: 'https://github.com/nervosnetwork/molecule/pull/49'
tags:
  - osv
  - rust
epss: 0.01361
epssPercentile: 0.71608
ingestedAt: '2026-10-13T11:45:30.151Z'
---

## Overview

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.

## Affected packages

- `molecule >= 0.0.0-0, < 0.7.2`

## Remediation

Upgrade to a patched release:

- `molecule 0.7.2`
