ADVISORIES

Go Vulnerability Database

GO-2021-0242

Panic on inputs with large exponents in math/big

Details

Rat.SetString and Rat.UnmarshalText may cause a panic or an unrecoverable fatal error if passed inputs with very large exponents.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.15.13 (fixed in 1.15.13)
From 1.16.0-0 before 1.16.5 (fixed in 1.16.5)

References