# CVE-2021-38195: RUSTSEC-2021-0076 - libsecp256k1 allows overflowing signatures

Source: https://junglewise.ai/threats/cve-2021-38195-overflow-in-libsecp256k1  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-07-13  
License: CC BY 4.0 with a link back

CVE-2021-38195 · Severity: low · CVSS 3.1 · Published 2021-07-13

libsecp256k1 allows overflowing signatures

Technologies: [libsecp256k1 (crates.io)](https://junglewise.ai/threats/technologies/libsecp256k1). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2021-38195 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-38195 being exploited in the wild.

**How severe is CVE-2021-38195?** Low severity, with a CVSS score of 3.1, published 13 July 2021.

**Which products and versions are affected?** libsecp256k1 (crates.io) SEMVER:introduced=0,fixed=0.5.0, SEMVER:introduced=0.0.0-0,fixed=0.5.0.

**Is there a fix for CVE-2021-38195?** Yes. libsecp256k1 (crates.io): upgrade to 0.5.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-38195?** Check whether you run libsecp256k1 (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- libsecp256k1 (crates.io): upgrade to 0.5.0 or later

  ```sh
  cargo update -p libsecp256k1
  ```


## Affected products

- libsecp256k1 (crates.io) SEMVER:introduced=0,fixed=0.5.0, SEMVER:introduced=0.0.0-0,fixed=0.5.0

## Identifiers

- CVE-2021-38195
- GHSA-g4vj-x7v9-h82m
- RUSTSEC-2021-0076

## Related threats

- [RUSTSEC-2025-0161 - libsecp256k1 is unmaintained](https://junglewise.ai/threats/rustsec-2025-0161-libsecp256k1-is-unmaintained-3f3620a2)
- [RUSTSEC-2019-0027 - Flaw in Scalar::check_overflow allows side-channel timing attack](https://junglewise.ai/threats/cve-2019-25003-libsecp256k1-contains-side-channel-timing-attack)
