Vulnerability · Published Dec 26, 2022 · Assigned by mitre

CVE-2021-38561

High 7.5

In plain English

A high-severity out-of-bounds read in the git-lfs package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20git-lfs3.1.2-r3ALPINE-CVE-2021-38561
Alpine:v3.21git-lfs3.1.2-r3ALPINE-CVE-2021-38561
Alpine:v3.22git-lfs3.1.2-r3ALPINE-CVE-2021-38561
Alpine:v3.23git-lfs3.1.2-r3ALPINE-CVE-2021-38561
Alpine:v3.24git-lfs3.1.2-r3ALPINE-CVE-2021-38561
Debian:12golang-golang-x-text0.3.7-1DEBIAN-CVE-2021-38561
Debian:13golang-golang-x-text0.3.7-1DEBIAN-CVE-2021-38561
Debian:14golang-golang-x-text0.3.7-1DEBIAN-CVE-2021-38561
Gogolang.org/x/text0.3.7GO-2021-0113
Gogolang.org/x/text0.3.7GHSA-ppp9-7jff-5vj2
Ubuntu:22.04:LTSgolang-golang-x-text0.3.7-1UBUNTU-CVE-2021-38561
Ubuntu:22.04:LTSgolang-golang-x-text0.3.7-1ubuntu0.20.04.1USN-5873-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References