CVE-2021-38195: Overflow in libsecp256k1
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38812%
CWE
Published
8/25/2021
Updated
2/3/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
libsecp256k1 | rust | < 0.5.0 | 0.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from signature parsing functions that didn't validate curve order constraints. The GitHub PR #67 explicitly shows these functions were renamed to parse_overflowing/parse_overflowing_slice in the fix, while new parse_standard functions with proper checks were added. Before 0.5.0, these were the primary parsing methods without overflow validation, matching the CWE-190 and CWE-347 descriptions. The file path is confirmed from commit diffs and advisory details.