Advisory

GHSA-g4vj-x7v9-h82m

Also known as: CVE-2021-38195, RUSTSEC-2021-0076

Summary

Overflow in libsecp256k1

Details

An issue was discovered in the libsecp256k1 crate before 0.5.0 for Rust. It can verify an invalid signature because it allows the R or S parameter to be larger than the curve order, aka an overflow.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:56 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

libsecp256k1

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences