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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ark-r1cs-std (crates.io) | from 0.2.0 before 0.3.1, from 0.0.0-0 before 0.3.1 | GitHub Advisory Database, RustSec Advisory Database |
| arcworks ark-r1cs-std | before 0.3.1 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| https://rustsec.org/advisories/RUSTSEC-2021-0075.html | advisory, exploit, issue-tracking, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-38194 | advisory | |
| https://github.com/arkworks-rs/r1cs-std/pull/70 | web | |
| https://github.com/arkworks-rs/r1cs-std/commit/47ddbaa411afe7c499311a248a38135e5a192b67 | web | |
| https://github.com/arkworks-rs/r1cs-std | package | |
| https://crates.io/crates/ark-r1cs-std | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-38194 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qj3v-q2vj-4c8h changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0075 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-38194 changed 2026-06-17 | Public domain |