Advisory

GHSA-56wv-2wr9-3h9r

Also known as: CVE-2020-12607, PYSEC-2020-42

Summary

Improper Verification of Cryptographic Signature in fastecdsa

Details

An issue was discovered in fastecdsa before 2.1.2. When using the NIST P-256 curve in the ECDSA implementation, the point at infinity is mishandled. This means that for an extreme value in k and s<sup>-1</sup>, the signature verification fails even if the signature is correct. This behavior is not solely a usability problem. There are some threat models where an attacker can benefit by successfully guessing users for whom signature verification will fail.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-12 16:30 UTC
Modified
2025-02-12 18:54 UTC

Affected packages and fixes

fastecdsa

PyPI · All systems

Affected

  • introduced 0, fixed 2.1.2 (ecosystem)

Fixed versions

2.1.2

Fix

  • Fixed version 2.1.2
    pip install --upgrade fastecdsa==2.1.2

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