Skip to content

Calculation error in ark-r1cs-std

Critical severity GitHub Reviewed Published Aug 25, 2021 to the GitHub Advisory Database • Updated Apr 18, 2023

Package

cargo ark-r1cs-std (Rust)

Affected versions

>= 0.2.0, < 0.3.1

Patched versions

0.3.1

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.

References

Published by the National Vulnerability Database Aug 8, 2021
Reviewed Aug 18, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Apr 18, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-38194

GHSA ID

GHSA-qj3v-q2vj-4c8h

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.