Advisory

RUSTSEC-2021-0076

Also known as: CVE-2021-38195, GHSA-g4vj-x7v9-h82m

Summary

libsecp256k1 allows overflowing signatures

Details

libsecp256k1 accepts signatures whose R or S parameter is larger than the
secp256k1 curve order, which differs from other implementations. This could
lead to invalid signatures being verified.

The error is resolved in 0.5.0 by adding a check_overflow flag.

Severity

Not rated by the source.

Dates

Published
2021-07-13 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

libsecp256k1

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.5.0 (semver)

Fixed versions

0.5.0

Fix

  • Fixed version 0.5.0
    cargo update -p libsecp256k1 --precise 0.5.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences