CVE-2021-33198
HIGH7.5EPSS 0.03%Panic on inputs with large exponents in math/big
Published: 2/17/2022Modified: 4/28/2026
Description
In Go before 1.15.13 and 1.16.x before 1.16.5, there can be a panic for a large exponent to the math/big.Rat SetString or UnmarshalText method.
Affected packages (3)
- Bitnami/golangfrom 0, < 1.15.13, >= 1.16.0, < 1.16.5
- Debian/golang-1.15from 0, < 1.15.9-5
- Go/stdlibfrom 0, < 1.15.13, >= 1.16.0-0, < 1.16.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-33198
- PATCHhttps://go.dev/cl/316149
- PATCHhttps://go.googlesource.com/go/+/6c591f79b0b5327549bd4e94970f7a279efb4ab0
- REPORThttps://go.dev/issue/45910
- WEBhttps://groups.google.com/g/golang-announce
- WEBhttps://groups.google.com/g/golang-announce/c/RgCMkAEQjSI
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2021-33198
- WEBhttps://security.gentoo.org/glsa/202208-02