HistoryEditJSON (OSV)

RUSTSEC-2019-0027

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

Reported
Issued
Package
libsecp256k1 (crates.io)
Type
Vulnerability
Categories
Keywords
#crypto #sidechannel
Aliases
CVSS Score
7.5 HIGH
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Patched
  • >=0.3.1
Affected Functions
Version
libsecp256k1::Scalar::check_overflow
  • <0.3.1

Description

Versions of libsecp256k1 prior to 0.3.1 did not execute Scalar::check_overflow in constant time.

This allows an attacker to potentially leak information via a timing attack.

The flaw was corrected by modifying Scalar::check_overflow to execute in constant time.

Advisory available under CC0-1.0 license.