CVE-2021-38194

An issue was discovered in the ark-r1cs-std crate before 0.3.1 for Rust

published August 8, 2021

CVSS
—
EPSS
1%
Percentile
69.7
In the wild
Unconfirmed
What it is

⚠️ A slight oversight in the ark-r1cs-std crate could let crafty provers slip through the cracks! By skipping constraints in the FieldVar::mul_by_inverse method, unsound proofs might still get a thumbs-up. 🔍 Think of it like a math test where the teacher forgets to check if the answers are actually correct — a student could confidently submit nonsense, and still get an A! This means an attacker could potentially produce fraudulent proofs that appear valid, leading to trust issues in any system relying on these computations. While it’s not actively exploited, the weakness certainly opens the door for future mischief!

Put simply

Think of it like a math test where the teacher forgets to check if the answers are actually correct — a student could confidently submit nonsense, and still get an A! In the ark-r1cs-std crate before version 0.3.1, the FieldVar::mul_by_inverse method lacks proper constraint enforcement, allowing provers to create unsound proofs that pass verification without being caught.

What to do

This means an attacker could potentially produce fraudulent proofs that appear valid, leading to trust issues in any system relying on these computations. While it’s not actively exploited, the weakness certainly opens the door for future mischief! Upgrade to ark-r1cs-std version 0.3.1 or later immediately to enforce necessary constraints. Conduct a thorough review of your implementations to ensure that proofs are valid and secure. You've got this! Implement these changes, and you'll keep your proofs sound and secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01275 · 69.7th percentile
Published
2021-08-08T05:08Z
EPSS history
Timeline
  • 08 AUG 05:08Z
    An issue was discovered in the ark-r1cs-std crate before 0.3.1 for Rust
    cvelistv5