Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
CVE-2021-38195: libsecp256k1 for Rust: Invalid Signature Verification Due to Overflow
CVE-2021-38195 · published 5 years ago
Summary
The libsecp256k1 library for Rust can incorrectly verify signatures if they contain very large numbers. This could be used by attackers to create fake signatures that appear legitimate. Update to the latest version of the library to fix this issue.
What to do
- Update sorpaas libsecp256k1 to version 0.5.0.
- Update parity libsecp256k1 to version 0.5.0 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| rust | sorpaas | libsecp256k1 |
< 0.5.0 Fix: upgrade to 0.5.0
|
| – | parity | libsecp256k1 |
< 0.5.0 cpe:2.3:a:parity:libsecp256k1:*:*:*:*:*:rust:*:* |
Original advisory text
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.
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-38195
- https://github.com/paritytech/libsecp256k1/pull/67
- https://rustsec.org/advisories/RUSTSEC-2021-0076.html
- https://github.com/advisories/GHSA-g4vj-x7v9-h82m
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/libsecp256k1/R... Third Party Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Type
CWE-190Integer Overflow
CWE-347Improper Verification of Cryptographic Signature
Timeline
Published8 Aug 2021
Updated11 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta