critical9.8
CVE-2021-38195
Overflow in libsecp256k1
Impact
An issue was discovered in the libsecp256k1 crate before 0.5.0 for Rust. It can verify an invalid signature because it allows the R or S parameter to be larger than the curve order, aka an overflow.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | libsecp256k1 | < 0.5.0 | 0.5.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Parity | Libsecp256k1 | before 0.5.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libsecp256k1/RUSTSEC-2021-0076.md
- https://rustsec.org/advisories/RUSTSEC-2021-0076.html
- https://github.com/advisories/GHSA-g4vj-x7v9-h82m
- https://nvd.nist.gov/vuln/detail/CVE-2021-38195
- https://github.com/paritytech/libsecp256k1/pull/67