GHSA-qj3v-q2vj-4c8h

Suggest an improvement
Source
https://github.com/advisories/GHSA-qj3v-q2vj-4c8h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-qj3v-q2vj-4c8h/GHSA-qj3v-q2vj-4c8h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qj3v-q2vj-4c8h
Aliases
Published
2021-08-25T20:55:58Z
Modified
2023-11-08T04:06:26.167178Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Calculation error in ark-r1cs-std
Details

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::mulbyinverse method. Thus, a prover can produce a proof that is unsound but is nonetheless verified.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "github_reviewed_at": "2021-08-18T21:27:27Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-682"
    ]
}
References

Affected packages

crates.io / ark-r1cs-std

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.0
Fixed
0.3.1

Ecosystem specific

{
    "affected_functions": [
        "ark_r1cs_std::FieldVar::mul_by_inverse"
    ]
}