# CVE-2019-25003: RUSTSEC-2019-0027 - Flaw in Scalar::check_overflow allows side-channel timing attack

Source: https://junglewise.ai/threats/cve-2019-25003-libsecp256k1-contains-side-channel-timing-attack  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-10-14  
License: CC BY 4.0 with a link back

CVE-2019-25003 · Severity: low · CVSS 3.1 · Published 2019-10-14

Flaw in Scalar::check_overflow allows side-channel timing attack

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

## Quick answers

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

**How severe is CVE-2019-25003?** Low severity, with a CVSS score of 3.1, published 14 October 2019.

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

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

**Am I affected by CVE-2019-25003?** 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.3.1 or later

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


## Affected products

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

## Identifiers

- CVE-2019-25003
- GHSA-hrjm-c879-pp86
- RUSTSEC-2019-0027

## Related threats

- [RUSTSEC-2025-0161 - libsecp256k1 is unmaintained](https://junglewise.ai/threats/rustsec-2025-0161-libsecp256k1-is-unmaintained-3f3620a2)
- [RUSTSEC-2021-0076 - libsecp256k1 allows overflowing signatures](https://junglewise.ai/threats/cve-2021-38195-overflow-in-libsecp256k1)
