PT-2021-6082
CVE-2021-33198
·
Published
2021-02-19
·
Updated
2026-10-30
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions
Go versions prior to 1.15.13
Go versions 1.16.x prior to 1.16.5
Description
The issue is related to the math/big.Rat component and the UnmarshalText method in the Go programming language, which can lead to uncontrolled memory allocation. This can cause a device to crash and restart when exploited by a remote attacker. The problem arises when the Rat.SetString or Rat.UnmarshalText method is passed inputs with very large exponents, potentially resulting in a panic or an unrecoverable fatal error.
Recommendations
For Go versions prior to 1.15.13, update to version 1.15.13 or later to resolve the issue.
For Go versions 1.16.x prior to 1.16.5, update to version 1.16.5 or later to resolve the issue.
As a temporary workaround, consider restricting the use of the
Rat.SetString and Rat.UnmarshalText methods until a patch is available, especially when handling inputs with large exponents. Found an issue in the description? Have something to add? Feel free to write us 👾