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 VendorProductAffected 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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.8 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-190Integer Overflow
CWE-347Improper Verification of Cryptographic Signature
Timeline
Published8 Aug 2021
Updated11 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta