Advisory

GHSA-82hm-vh7g-hrh9

Also known as: CVE-2021-45697, GHSA-6p3c-v8vc-c244, RUSTSEC-2021-0103

Summary

Partial read is incorrect in molecule

Details

Impact

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.

Workarounds

If you already have the whole FixVec A, you can use A.as_slice().len() to get the total size of the FixVec.

For more information

If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 21:01 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

molecule

crates.io · All systems

Affected

  • introduced 0, fixed 0.7.2 (semver)

Fixed versions

0.7.2

Fix

  • Fixed version 0.7.2
    cargo update -p molecule --precise 0.7.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences