Advisory

GO-2022-0435

Also known as: BIT-golang-2022-28327, CVE-2022-28327

Summary

Panic due to large inputs affecting P-256 curves in crypto/elliptic

Details

A crafted scalar input longer than 32 bytes can cause P256().ScalarMult or P256().ScalarBaseMult to panic. Indirect uses through crypto/ecdsa and crypto/tls are unaffected. amd64, arm64, ppc64le, and s390x are unaffected.

Severity

Not rated by the source.

Dates

Published
2022-05-20 21:17 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.17.9, introduced 1.18.0-0, fixed 1.18.1 (semver)

Fixed versions

1.17.9, 1.18.1

Fix

The export has no generic command for this ecosystem.

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: Go Vulnerability Database · CC BY 4.0

Sources & licences