Closed
Description
Unmarshaling a string into a *Rat
may cause resource exhaustion, consuming a huge amount of RAM, which may cause a system to crash or timeout. This is reachable from (*Rat).SetString
, (*Rat).UnmarshalText
, (*Rat).Scan
, and any other function that unmarshals a string into a (*Rat)
such as constant.MakeFromLiteral
.
Thanks to the OSS-Fuzz project for discovering this issue and to Emmanuel Odeke for reporting it.
This is CVE-2022-23772.