# CVE-2021-33198: Panic on inputs with large exponents in math/big

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.37%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-02T18:55:53.000Z
- Modified: 2026-09-08T08:47:48.181Z
- Also known as: GO-2021-0242, BIT-GOLANG-2021-33198
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stdlib (Go): before 1.15.13; from 1.16.0-0 before 1.16.5
- golang go: before 1.15.13; from 1.16.0 before 1.16.5
- golang (Bitnami): before 1.15.13; from 1.16.0 before 1.16.5

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI> (exploit, advisory, patch, third-party-advisory, web)
- <https://groups.google.com/g/golang-announce> (advisory, third-party-advisory)
- <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

- CVE List: [CVE-2021-33198](https://www.cve.org/CVERecord?id=CVE-2021-33198), CVE Terms of Use, modified 2024-08-03
- Go Vulnerability Database: [GO-2021-0242](https://pkg.go.dev/vuln/GO-2021-0242), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-33198](https://nvd.nist.gov/vuln/detail/CVE-2021-33198), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2021-33198](https://osv.dev/vulnerability/BIT-GOLANG-2021-33198), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-33198 · Whole record: https://cve.day/CVE-2021-33198.json · Rebuilt by cve.day 2026-11-25T22:58:02.934Z
