rustsec-2021-0075
Vulnerability from osv_rustsec
Published
2021-07-08 12:00
Modified
2023-06-13 13:10
Summary
Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems
Details
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.
{
"affected": [
{
"database_specific": {
"categories": [
"crypto-failure"
],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"ark_r1cs_std::FieldVar::mul_by_inverse"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "ark-r1cs-std",
"purl": "pkg:cargo/ark-r1cs-std"
},
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.3.1"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"CVE-2021-38194",
"GHSA-qj3v-q2vj-4c8h"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "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.\nThis method was used primarily in scalar multiplication for [`short_weierstrass::ProjectiveVar`](https://docs.rs/ark-r1cs-std/0.3.0/ark_r1cs_std/groups/curves/short_weierstrass/struct.ProjectiveVar.html).\n\nThis bug was fixed in commit `47ddbaa`, and was released as part of version `0.3.1` on `crates.io`.",
"id": "RUSTSEC-2021-0075",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-07-08T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/ark-r1cs-std"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0075.html"
},
{
"type": "WEB",
"url": "https://github.com/arkworks-rs/r1cs-std/pull/70"
}
],
"related": [],
"severity": [],
"summary": "Flaw in `FieldVar::mul_by_inverse` allows unsound R1CS constraint systems"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…