CVEfocus › CVE database › CVE-2021-38561

CVE-2021-38561

CVSS 7.5 HighEPSS 1.5% (higher than 74% of CVEs)Published 2022-12-26Updated 2025-04-14Assigner: mitre

golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.

CWE-125

What to do

Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
18Will not fix
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04golang-golang-x-textFixed0.3.7-1UBUNTU-CVE-2021-38561
Ubuntu 20.04golang-golang-x-textFixed0.3.2-4ubuntu0.1UBUNTU-CVE-2021-38561
Ubuntu 20.04golang-x-textWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-38561
Ubuntu 18.04golang-x-textFixed0.0~git20170627.0.6353ef0-1ubuntu2.1UBUNTU-CVE-2021-38561
Ubuntu 16.04golang-x-textWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-38561
Debian 14golang-golang-x-textFixed0.3.7-1DEBIAN-CVE-2021-38561
Debian 13golang-golang-x-textFixed0.3.7-1DEBIAN-CVE-2021-38561
Debian 12golang-golang-x-textFixed0.3.7-1DEBIAN-CVE-2021-38561
Red Hat Enterprise Linux 9osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 9podmanWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-catatonitWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-dockerWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-gvproxyWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-pluginsWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-remoteWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-testsWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 8podmanNot affected
Red Hat Enterprise Linux 8podman-catatonitNot affected
Red Hat Enterprise Linux 8podman-dockerNot affected
Red Hat Enterprise Linux 8podman-gvproxyNot affected
Red Hat Enterprise Linux 8podman-manpagesNot affected
Red Hat Enterprise Linux 8podman-pluginsNot affected
Red Hat Enterprise Linux 8podman-remoteNot affected
Red Hat Enterprise Linux 8podman-testsNot affected
Red Hat Enterprise Linux 7podmanWill not fix
Out of support scope
Alpine Linux 3.24git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.23git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.22git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.21git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.20git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.19git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.18git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.17git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Alpine Linux 3.16git-lfsFixed3.1.2-r3ALPINE-CVE-2021-38561
Go librarygolang.org/x/textFixed0.3.7GHSA-ppp9-7jff-5vj2

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.