CVE-2021-38195Parity Libsecp256k1
Critical 9.8 No auth needed
Follow: this CVE · Parity · Parity Libsecp256k1 We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Aug 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libsecp256k1.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | libsecp256k1 |
< 0.5.0 |
0.5.0 |
cargo update -p libsecp256k1 --precise 0.5.0 |
| crates.io | libsecp256k1 |
≥ 0.0.0-0 < 0.5.0 |
0.5.0 |
cargo update -p libsecp256k1 --precise 0.5.0 |
Per OSV / GitHub Advisories (GHSA-g4vj-x7v9-h82m, RUSTSEC-2021-0076). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| parity | libsecp256k1 | < 0.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch