# CVE-2020-28851: In x/text in Go 1.15.4, an "index out of range" panic occurs in language.ParseAcceptLanguage while parsing the -u- extension.

- 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): 2.33%, higher than 84% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-02T05:42:40.000Z
- Modified: 2026-09-08T08:47:46.921Z
- Also known as: BIT-GOLANG-2020-28851
- Weaknesses: CWE-129
- Assigned by: mitre

## Description

In x/text in Go 1.15.4, an "index out of range" panic occurs in language.ParseAcceptLanguage while parsing the -u- extension. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- golang go: 1.15.4
- golang (Bitnami): from 1.15.4 before 1.15.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://github.com/golang/go/issues/42535> (exploit, advisory, issue-tracking, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210212-0004/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-28851> (web)

## Sources

- CVE List: [CVE-2020-28851](https://www.cve.org/CVERecord?id=CVE-2020-28851), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-28851](https://nvd.nist.gov/vuln/detail/CVE-2020-28851), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2020-28851](https://osv.dev/vulnerability/BIT-GOLANG-2020-28851), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-28851 · Whole record: https://cve.day/CVE-2020-28851.json · Rebuilt by cve.day 2026-11-25T22:57:56.729Z
