CVE catalog

CVE-2021-38561

golang-golang-x-text: CVE-2021-38561

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.43% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-golang-x-textsid0.43.0-1fixed
Debiangolang-golang-x-textforky0.43.0-1fixed
Debiangolang-golang-x-texttrixie0.22.0-1fixed
Debiangolang-golang-x-textbookworm0.7.0-1fixed
Ubuntugolang-x-text16.040+git20151019.0fe7e68-0ubuntu1vulnerable
Ubuntugolang-x-text16.040+git20151217.cf49866-0ubuntu1vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu1vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2vulnerable
Ubuntugolang-x-text18.040.0~git20170627.0.6353ef0-1ubuntu2.1fixed
Ubuntugolang-golang-x-text20.040.3.2-3vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4vulnerable
Ubuntugolang-golang-x-text20.040.3.2-4ubuntu0.1fixed
Ubuntugolang-x-text20.040.3.2-1vulnerable
Ubuntugolang-golang-x-text22.040.3.6-1vulnerable
Ubuntugolang-golang-x-text22.040.3.7-1fixed
Opensusegitleakstumbleweed8.18.3-1.1fixed
Opensusecnitumbleweed1.1.2-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-golang-x-textsourcesid0.3.7-1not yet assignedNot reportedNot reported
Debiangolang-golang-x-textsourceforky0.3.7-1not yet assignedNot reportedNot reported
Debiangolang-golang-x-textsourcetrixie0.3.7-1not yet assignedNot reportedNot reported
Debiangolang-golang-x-textsourcebookworm0.3.7-1not yet assignedNot reportedNot reported
Ubuntugolang-x-textdeb18.040.0~git20170627.0.6353ef0-1ubuntu2.1Not reportedUBUNTU-CVE-2021-38561Not reported
Ubuntugolang-golang-x-textdeb20.040.3.2-4ubuntu0.1Not reportedUBUNTU-CVE-2021-38561Not reported
Ubuntugolang-golang-x-textdeb22.040.3.7-1Not reportedUBUNTU-CVE-2021-38561Not reported
Opensusegitleaksrpmtumbleweed8.18.3-1.1Not reportedOPENSUSE-SU-2024:14015-1Not reported
Opensusecnirpmtumbleweed1.1.2-2.1Not reportedOPENSUSE-SU-2024:12599-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [gitleaks]

    Details (1)
    • 8.30.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 8.18.3-1.1

      Version impact unknown

      dsa · gitleaks · opensuse · tumbleweed

  • Source package: [gitleaks]

    Details (1)
    • 8.30.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 8.18.3-1.1

      Version impact unknown

      dsa · gitleaks · opensuse · tumbleweed

  • Source package: [gitleaks]

    Details (1)
    • 8.30.1-1.4 · noarch · tumbleweed

      Unknown · Fixed: 8.18.3-1.1

      Version impact unknown

      dsa · gitleaks · opensuse · tumbleweed

  • [cni]Fixed

    Source package: [cni]

    Details (1)
    • 1.3.0-1.7 · x86_64 · tumbleweed

      Fixed · Fixed: 1.1.2-2.1

      dsa · cni · opensuse · tumbleweed

  • [gitleaks]Fixed

    Source package: [gitleaks]

    Details (1)
    • 8.30.1-1.4 · x86_64 · tumbleweed

      Fixed · Fixed: 8.18.3-1.1

      dsa · gitleaks · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [golang-golang-x-text]

    Details (4)
    • 0.7.0-1 · all · bookworm

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.7.0-1 · all · bookworm

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.16.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

    • 0.16.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · bookworm; dsa · golang-golang-x-text · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-golang-x-text]

    Details (4)
    • 0.22.0-1 · all · trixie

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · 13

    • 0.22.0-1 · all · trixie

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · 13

    • 0.36.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · 13

    • 0.36.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.3.7-1

      dsa · golang-golang-x-text · debian · 13

Observed:

References