CVE-2020-28851 json
In x/text in Go 1.15.4, an "index out of range" panic occurs in language.ParseAcceptLanguage while parsing the -u- extension.
published 2021-01-02 5 y ago modified 2026-09-08 2 mo ago also BIT-golang-2020-28851 , EUVD-2020-21243
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.)
Patch / fix
- bitnami golang 1.15.5
- golang-golang-x-text Debian 14, Debian 13, Debian 12 0.3.6-1
debian advisories DEBIAN-CVE-2020-28851
- golang-x-text Ubuntu 18.04 LTS 0.0~git20170627.0.6353ef0-1ubuntu2.1
- golang-golang-x-text Ubuntu 20.04 LTS 0.3.2-4ubuntu0.1
ubuntu advisories UBUNTU-CVE-2020-28851
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- crit RHEL 8 3.15-3.module+el8.6.0+14673+621cb8be
- criu RHEL 8 3.15-3.module+el8.6.0+14673+621cb8be
- crun RHEL 8 1.4.4-1.module+el8.6.0+14673+621cb8be
- runc RHEL 8 1:1.0.3-2.module+el8.6.0+14673+621cb8be
- udica RHEL 8 0.2.6-2.module+el8.6.0+14673+621cb8be
- conmon RHEL 8 2:2.1.0-1.module+el8.6.0+14673+621cb8be
- podman RHEL 8 2:4.0.2-6.module+el8.6.0+14673+621cb8be
- skopeo RHEL 8 2:1.6.1-2.module+el8.6.0+14673+621cb8be
red hat advisories RHSA-2022:1762RHSA-2022:7954RHSA-2022:7129RHSA-2022:1276
- podman AlmaLinux 9 2:4.2.0-3.el9
- podman-tests AlmaLinux 9 2:4.2.0-3.el9
- podman-docker AlmaLinux 9 2:4.2.0-3.el9
- podman-remote AlmaLinux 9 2:4.2.0-3.el9
- podman-gvproxy AlmaLinux 9 2:4.2.0-3.el9
- podman-plugins AlmaLinux 9 2:4.2.0-3.el9
- git-lfs AlmaLinux 8 2.13.3-3.el8_6
- crit AlmaLinux 8 3.15-3.module_el8.6.0+2751+06427ca3
almalinux advisories ALSA-2022:7954ALSA-2022:7129ALSA-2022:1762
- git-lfs Rocky Linux 8 2.13.3-3.el8_6
rocky linux advisories RLSA-2022:7129
- multus Azure Linux 3.0 4.0.2-1
- buildah Azure Linux 3.0 1.41.4-2
azure linux advisories AZL-41422AZL-45033
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-28851 updated cvss 7.5
golang.org/x/text: Panic in language.ParseAcceptLanguage while parsing -u- extension
-
Red Hat Advanced Cluster Management for Kubernetes 2 search-collector-rhel8affected: no fix available
-
Red Hat Ceph Storage 2 golang, golang-bin, golang-src Red Hat Ceph Storage 3 golang, golang-bin, golang-src Red Hat Enterprise Linux 7 golang, podman, buildah, golang-bin, golang-src, golang-misc, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 podman, buildah, podman-tests, buildah-tests, podman-docker, podman-remote, +4 moreaffected: no fix available, no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-installer, openshift4/ose-thanos-rhel9, openshift4/ose-baremetal-installer-rhel9affected: no fix available, no fix planned “Will not fix”
-
Red Hat Openshift Container Storage 4 ocs4/cephcsi-rhel8, ocs4/ocs-rhel8-operatoraffected: no fix available “Fix deferred”
-
Red Hat OpenShift Virtualization 2 kubevirt-metrics-collectoraffected: no fix planned “Will not fix”
-
Red Hat Quay 3 quay/clair-rhel8affected: no fix available
-
Red Hat Software Collections rh-git227-git-lfsaffected: no fix planned “Will not fix”
show 6 moreshow fewer
-
Red Hat Storage 3 heketi, grafana, heketi-client, python-heketi, rhgs3/rhgs-gluster-block-prov-rhel7affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh 2.0.9-3.el8, servicemesh-mixc 2.0.9-3.el8, servicemesh-mixs 2.0.9-3.el8, servicemesh-istioctl 2.0.9-3.el8, servicemesh-pilot-agent 2.0.9-3.el8, servicemesh-pilot-discovery 2.0.9-3.el8fixed: vendor fix RHSA-2022:1276
-
Red Hat Enterprise Linux AppStream (v. 8) git-lfs 2.13.3-3.el8_6, crit 3.15-3.module+el8.6.0+14673+621cb8be, criu 3.15-3.module+el8.6.0+14673+621cb8be, crun 1.4.4-1.module+el8.6.0+14673+621cb8be, runc 1.0.3-2.module+el8.6.0+14673+621cb8be, udica 0.2.6-2.module+el8.6.0+14673+621cb8be, +28 morefixed: vendor fix RHSA-2022:1762
-
Red Hat Enterprise Linux AppStream (v. 9) podman 4.2.0-3.el9, podman-tests 4.2.0-3.el9, podman-docker 4.2.0-3.el9, podman-remote 4.2.0-3.el9, podman-gvproxy 4.2.0-3.el9, podman-plugins 4.2.0-3.el9fixed: vendor fix RHSA-2022:7954
-
Red Hat OpenShift Container Platform 4.10 openshift4-wincw/windows-machine-config-rhel8-operator 5.0.0-5, openshift4-wincw/windows-machine-config-operator-bundle v5.0.0-5fixed: vendor fix RHSA-2022:0577
-
Red Hat OpenShift Service Mesh 2.0 kiali v1.24.7.redhat1-1.el8, servicemesh-cni 2.0.9-3.el8, servicemesh-proxy 2.0.9-3.el8, servicemesh-operator 2.0.9-3.el8, servicemesh-prometheus 2.14.0-16.el8.1 Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 9 golang, buildah, git-lfs, go-toolset, golang-bin, golang-src, +4 more Red Hat OpenShift Container Platform 3.11 podman, heapster, prometheus, csi-attacher, csi-provisioner, atomic-openshift, +33 more Red Hat OpenShift Container Platform 4 cri-o, podman, cri-tools, openshift, podman-tests, podman-docker, +33 more Red Hat Openshift Container Storage 4 ocs4/ocs-must-gather-rhel8not affected: vulnerable code not present
+3 more productsfewer
Red Hat OpenShift Virtualization 2 virt-api, kubemacpool, bridge-marker, ovs-cni-marker, ovs-cni-plugin, kubevirt-vmware, +10 more Red Hat Software Collections rh-git218-git-lfs Red Hat Storage 3 golang, golang-bin, golang-src, golang-misc, golang-tests
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.33% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/golang/go/issues/42535 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | golang | >=1.15.4, <1.15.5 |
1.15.5 |
Classification
- Weakness
-
- CWE-129 Improper Validation of Array Index
References
-
github.com
/golang/go/issues/42535
exploit, issue-tracking, third-party-advisory, advisory
-
security.netapp.com
/advisory/ntap-20210212-0004/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-28851
web
Sources
- CVE List CVE-2020-28851
- NVD CVE-2020-28851
- OSV BIT-golang-2020-28851
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.