Skip to main content
No exploitation reportedFix available

CVE-2020-28852

No exploitation reported by the sources we read.

  • Published2021-01-02
  • Fixed in0.3.5
  • WeaknessCWE-129

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

In x/text in Go before v0.3.5, a "slice bounds out of range" panic occurs in language.ParseAcceptLanguage while processing a BCP 47 tag. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)

Timeline

dates in UTC
  1. 2021-01-0206:15CVE publishedNVD

Versions per branch

NVD
Golang text
BranchAffectedFixed in
0.3< 0.3.50.3.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • buildahAzure Linux:3all versions · fixed in 1.41.4-2
  • dex-k8s-authenticatorChainguardall versions · fixed in 1.4.0-r33
  • git-lfsRocky Linux:8all versions · fixed in 0:2.13.3-3.el8_6
  • git-lfsRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.13.3-3.el8_6and 2 other packages
  • git-lfsAlmaLinux:8all versions · fixed in 2.13.3-3.el8_6
  • golang-golang-x-textUbuntu:22.04:LTSall versions · fixed in 0.3.7-1ubuntu0.20.04.1
  • golang-golang-x-textUbuntu:20.04:LTSall versions · fixed in 0.3.2-4ubuntu0.1
  • golang-golang-x-textDebian:14all versions · fixed in 0.3.5-1

12 more package ranges on OSV.dev

Vendor advisories

  • CVE-2020-28852 Red Hat Product Security83 products fixed · 68 known affected

    golang.org/x/text: Panic in language.ParseAcceptLanguage while processing bcp47 tag

    servicemesh-cni as a component of OpenShift Service Mesh 2.0 · servicemesh-cni.src as a component of OpenShift Service Mesh 2.0 · go.src as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · +65 more

  • RHSA-2022:7954 Red Hat Product Security46 products fixed

    Red Hat Security Advisory: podman security and bug fix update

  • RHSA-2022:7129 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: git-lfs security and bug fix update

  • RHSA-2022:1276 Red Hat Product Security19 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.9 security update

  • RHSA-2022:0577 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Windows Container Support for Red Hat OpenShift 5.0.0 [security update]

  • RHSA-2021:2438 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.8.2 bug fix and security update

1 more advisory

Full record on NVD

Fix

  1. Update Golang text to 0.3.5
  2. Vendor fix Red Hat Product Security RHSA-2022:7954 · 46 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2022:1276 · 19 productsThe OpenShift Service Mesh release notes provide information on the features and known issues: https://docs.openshift.com/container-platform/latest/service_mesh/v2x/servicemesh-release-notes.html
  4. Vendor fix Red Hat Product Security RHSA-2022:0577 · 2 productsFor Windows Machine Config Operator upgrades, see the following documentation: https://docs.openshift.com/container-platform/latest/windows_containers/windows-node-upgrades.html
  5. Vendor fix Red Hat Product Security RHSA-2021:2438 · 3 productsFor OpenShift Container Platform 4.8 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.8/release_notes/ocp-4-8-r…
  6. No fix available, says the vendor Red Hat Product Security CVE-2020-28852 · 9 productsFix deferred
  7. No fix available, says the vendor Red Hat Product Security CVE-2020-28852 · 23 productsAffected

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2021-01-02
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-5rvp-q2j7-h9rj

Frequently asked questions

What is CVE-2020-28852?

In x/text in Go before v0.3.5, a "slice bounds out of range" panic occurs in language.ParseAcceptLanguage while processing a BCP 47 tag. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)

Is CVE-2020-28852 actively exploited?

Active exploitation of CVE-2020-28852 has not been confirmed. Its EPSS score was 1.7% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2020-28852?

CVE-2020-28852 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running golang.org/x/text? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record