Advisory

RUSTSEC-2021-0075

Also known as: CVE-2021-38194, GHSA-qj3v-q2vj-4c8h

Summary

Flaw in FieldVar::mul_by_inverse allows unsound R1CS constraint systems

Details

Versions 0.2.0 to 0.3.0 of ark-r1cs-std did not enforce any constraints in the FieldVar::mul_by_inverse method, allowing a malicious prover to produce an unsound proof that passes all verifier checks.
This method was used primarily in scalar multiplication for `short_weierstrass::ProjectiveVar`.

This bug was fixed in commit 47ddbaa, and was released as part of version 0.3.1 on crates.io.

Severity

Not rated by the source.

Dates

Published
2021-07-08 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

ark-r1cs-std

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences