CVE-2021-33198
7.5high
Panic on inputs with large exponents in math/big
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 3.37% (higher than 89% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GO-2021-0242BIT-GOLANG-2021-33198
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| stdlib (Go) | before 1.15.13, from 1.16.0-0 before 1.16.5 | Go Vulnerability Database |
| golang go | before 1.15.13, from 1.16.0 before 1.16.5 | NVD |
| golang (Bitnami) | before 1.15.13, from 1.16.0 before 1.16.5 | Bitnami Vulnerability Database |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high rating |
What each source says
CVE List
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.
Go Vulnerability Database
Rat.SetString and Rat.UnmarshalText may cause a panic or an unrecoverable fatal error if passed inputs with very large exponents.
NVD (es)
En Go versiones anteriores a 1.15.13 y versiones 1.16.x anteriores a 1.16.5, puede haber un pánico por un exponente grande al método math/big.Rat SetString o UnmarshalText.
References
| https://groups.google.com/g/golang-announce | advisory, third-party-advisory | |
| https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI | advisory, exploit, patch, third-party-advisory, web | |
| https://security.gentoo.org/glsa/202208-02 | advisory, third-party-advisory, vendor-advisory | |
| https://go.dev/cl/316149 | fix | |
| https://go.googlesource.com/go/+/6c591f79b0b5327549bd4e94970f7a279efb4ab0 | fix | |
| https://go.dev/issue/45910 | report | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-33198 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33198 changed 2024-08-03 | CVE Terms of Use |
| Go Vulnerability Database | GO-2021-0242 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-33198 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2021-33198 changed 2026-09-08 | Apache-2.0 |