cve.bz

CVE-2020-28851 golang go: Improper Validation of Array Index

7.5 highExploit referenceEPSS 2.3%

High (7.5) in golang go. EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.)

Severity

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
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-129 Improper Validation of Array Index
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-28851 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-28851?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-28851?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-28851 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:go1.15.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-golang-x-text0.3.6-1DEBIAN-CVE-2020-28851
Ubuntu16.04:LTS, 20.04:LTSgolang-x-textno fix listedUBUNTU-CVE-2020-28851
Ubuntu18.04:LTSgolang-x-text0.0~git20170627.0.6353ef0-1ubuntu2.1UBUNTU-CVE-2020-28851 USN-5873-1
Ubuntu20.04:LTSgolang-golang-x-text0.3.2-4ubuntu0.1UBUNTU-CVE-2020-28851 USN-5873-1
Ubuntu22.04:LTSgolang-golang-x-text0.3.7-1ubuntu0.20.04.1USN-5873-1
UbuntuPro:16.04:LTSgoogle-guest-agentno fix listedUBUNTU-CVE-2020-28851
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.2-4.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcockpit-podman0:43-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.0-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.179.1-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.0.1-2.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-27.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.15-3.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.4.4-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.8.2-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamgit-lfs, git-lfs-debuginfo, git-lfs-debugsource0:2.13.3-3.el8_6RHSA-2022:7129
Red Hatenterprise_linux:8::appstreamlibslirp, libslirp-devel, libslirp-debuginfo and 1 more0:4.4.0-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamnetavark, aardvark-dns2:1.0.1-27.module+el8.6.0+14673+621cb8beRHSA-2022:1762
12 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8buildah, buildah-tests1:1.24.2-4.module_el8.6.0+2878+e681bc44ALSA-2022:1762
AlmaLinux8cockpit-podman43-1.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
AlmaLinux8conmon2:2.1.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
AlmaLinux8container-selinux2:2.179.1-1.module_el8.6.0+2878+e681bc44ALSA-2022:1762
AlmaLinux8containernetworking-plugins1:1.0.1-2.module_el8.6.0+2878+e681bc44ALSA-2022:1762
AlmaLinux8containers-common2:1-27.module_el8.6.0+2878+e681bc44ALSA-2022:1762
AlmaLinux8crit, criu, criu-libs and 2 more3.15-3.module_el8.6.0+2751+06427ca3ALSA-2022:1762
AlmaLinux8crit, criu, criu-libs and 2 more3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
AlmaLinux8crun1.4.4-1.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
AlmaLinux8fuse-overlayfs1.8.2-1.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
AlmaLinux8git-lfs2.13.3-3.el8_6ALSA-2022:7129
AlmaLinux8libslirp, libslirp-devel4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2022:1762
10 more for AlmaLinux in the JSON.
Rocky Linux8git-lfs0:2.13.3-3.el8_6RLSA-2022:7129
Azure Linux3buildah1.41.4-2AZL-45033
Azure Linux3multus4.0.2-1AZL-41422

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Below Red Hat products include the affected version of 'golang.org/x/text', however the language package is not being used and hence they are rated as having a security impact of Low. A future update may address this issue.

* Red Hat OpenShift Container Storage 4

* OpenShift ServiceMesh (OSSM)

* Red Hat Gluster Storage 3

* Windows Container Support for Red Hat OpenShift

Only three components in OpenShift Container Platform include the affected package, 'golang.org/x/text/language' , the installer, baremetal installer and thanos container images. All other components that include a version of 'golang.org/x/text' do not include the 'language' package and are therefore not affected.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.0servicemesh-0:2.0.9-3.el8Fixed 2022-04-07RHSA-2022:1276
Red Hat Enterprise Linux 8container-tools:rhel8-8060020220401155929.2e213529Fixed 2022-05-10RHSA-2022:1762
Red Hat Enterprise Linux 8git-lfs-0:2.13.3-3.el8_6Fixed 2022-10-25RHSA-2022:7129
Red Hat Enterprise Linux 9podman-2:4.2.0-3.el9Fixed 2022-11-15RHSA-2022:7954
Red Hat OpenShift Container Platform 4.10openshift4-wincw/windows-machine-config-operator-bundle:v5.0.0-5Fixed 2022-03-28RHSA-2022:0577
Red Hat OpenShift Container Platform 4.10openshift4-wincw/windows-machine-config-rhel8-operator:5.0.0-5Fixed 2022-03-28RHSA-2022:0577
Red Hat Advanced Cluster Management for Kubernetes 2goAffected
Red Hat Ceph Storage 2golangOut of support scope
Red Hat Ceph Storage 3golangOut of support scope
Red Hat Enterprise Linux 7buildahOut of support scope
Red Hat Enterprise Linux 7golangOut of support scope
Red Hat Enterprise Linux 7podmanOut of support scope
Red Hat Enterprise Linux 8container-tools:1.0/buildahWill not fix
Red Hat Enterprise Linux 8container-tools:1.0/podmanOut of support scope
Red Hat Enterprise Linux 8container-tools:2.0/buildahWill not fix
Red Hat Enterprise Linux 8container-tools:2.0/podmanAffected
Red Hat Enterprise Linux 8go-toolset:rhel8/golangNot affected
Red Hat Enterprise Linux 9buildahNot affected
Red Hat Enterprise Linux 9git-lfsNot affected
Red Hat Enterprise Linux 9golangNot affected
74 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-28851.

Attack patterns (CAPEC)

  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON