CVE-2021-38561

NameCVE-2021-38561
Descriptiongolang.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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-golang-x-text (PTS)bullseye0.3.6-1vulnerable
bookworm0.7.0-1fixed
sid, trixie0.14.0-2fixed
golang-x-text (PTS)buster0.3.0-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-golang-x-textsource(unstable)0.3.7-1
golang-x-textsource(unstable)(unfixed)

Notes

[bullseye] - golang-golang-x-text <no-dsa> (Minor issue)
[buster] - golang-x-text <postponed> (Limited support, minor issue, follow bullseye DSAs/point-releases)
https://bugzilla.redhat.com/show_bug.cgi?id=2100495

Search for package or bug name: Reporting problems