Skip to content
Heist/ feed
Back to feed
UnratedFix available

Partial read is incorrect in molecule

Type: advisorySources: OSV

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.

Products
molecule
Affected versions
Not specified
Fixed versions
0.7.2
CVEs
CVE-2021-45697
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:41 UTC · Revision 1

Source evidence

Partial read is incorrect in molecule

core-osv · Original source

Published 30 Jul 2021, 12:00 UTC

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.

osv:RUSTSEC-2021-0103

molecule

Fixed versions: 0.7.2

Complete source record
{
  "id": "9b29262c154b52cd37c9b3bdd94d4c51510d5de6b8a4545928c200b1f3f8b51d",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2021-0103",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Partial read is incorrect in molecule",
    "summary": "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.",
    "evidence": "osv:RUSTSEC-2021-0103",
    "products": [
      {
        "name": {
          "value": "molecule",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.7.2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2021-0103",
      "aliases": [
        "CVE-2021-45697",
        "GHSA-6p3c-v8vc-c244",
        "GHSA-82hm-vh7g-hrh9",
        "RUSTSEC-2021-0103"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "0.7.2"
                }
              ]
            }
          ],
          "package": {
            "name": "molecule",
            "purl": "pkg:cargo/molecule",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0103.json",
            "categories": [],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:03.464339634Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/molecule",
        "https://rustsec.org/advisories/RUSTSEC-2021-0103.html",
        "https://github.com/nervosnetwork/molecule/pull/49"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45697",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306334,
  "published_at": "2021-07-30T12:00:00+00:00"
}