CVE-2021-38194 json
Calculation error in ark-r1cs-std
published 2021-07-08 5 y ago modified 2026-06-17 4 mo ago also GHSA-qj3v-q2vj-4c8h , RUSTSEC-2021-0075 , EUVD-2021-1846
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io ark-r1cs-std 0.3.1
- arcworks ark-r1cs-std 0.3.1
- github.com/arkworks-rs/r1cs-std@47ddbaa commit
- github.com/arkworks-rs/r1cs-std#70 pull request
- rustsec.org/advisories/RUSTSEC-2021-0075.html advisory
Exploit prediction
1.27% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0075.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | ark-r1cs-std | >=0.2.0, <0.3.1 >=0.0.0-0, <0.3.1 |
0.3.1 |
Classification
- Weakness
-
- CWE-682 Incorrect Calculation
References
-
rustsec.org
/advisories/RUSTSEC-2021-0075.html
web, exploit, issue-tracking, patch, third-party-advisory, advisory
-
github.com
/arkworks-rs/r1cs-std/pull/70
web
-
github.com
/arkworks-rs/r1cs-std/commit/47ddbaa411afe7c499311a248a38135e5a192b67
web
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/ark-r1cs-std/RUSTSEC-2021-0075.md
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-38194
advisory
-
github.com
/arkworks-rs/r1cs-std
package
-
crates.io
/crates/ark-r1cs-std
package
Sources
- CVE List CVE-2021-38194
- GitHub Advisory GHSA-qj3v-q2vj-4c8h
- NVD CVE-2021-38194
- OSV RUSTSEC-2021-0075
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.