Advisory

GHSA-qj3v-q2vj-4c8h

Also known as: CVE-2021-38194, RUSTSEC-2021-0075

Summary

Calculation error in ark-r1cs-std

Details

An issue was discovered in the ark-r1cs-std crate before 0.3.1 for Rust. It does not enforce any constraints in the FieldVar::mul_by_inverse method. Thus, a prover can produce a proof that is unsound but is nonetheless verified.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:55 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

ark-r1cs-std

crates.io · All systems

Affected

  • introduced 0.2.0, fixed 0.3.1 (semver)

Fixed versions

0.3.1

Fix

  • Fixed version 0.3.1
    cargo update -p ark-r1cs-std --precise 0.3.1

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