CVE-2021-38194
JSON

9.8critical

Calculation error in ark-r1cs-std

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.27% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-qj3v-q2vj-4c8hRUSTSEC-2021-0075

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ark-r1cs-std (crates.io)from 0.2.0 before 0.3.1, from 0.0.0-0 before 0.3.1GitHub Advisory Database, RustSec Advisory Database
arcworks ark-r1cs-stdbefore 0.3.1NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

RustSec Advisory Database

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.

NVD (es)

Se ha detectado un problema en la crate ark-r1cs-std versiones anteriores a 0.3.1 para Rust. No aplica ninguna restricción en el método FieldVar::mul_by_inverse. Por lo tanto, un prover puede producir una prueba que no sea sólida pero que, sin embargo, sea comprobada

References

Sources

SourceRecordLicence
CVE ListCVE-2021-38194 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-qj3v-q2vj-4c8h changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0075 changed 2023-11-08CC0-1.0
NVDCVE-2021-38194 changed 2026-06-17Public domain