Out-of-bounds Read Affecting gitleaks package, versions <8.18.2-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.16% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-GITLEAKS-6481498
  • published22 Mar 2024
  • disclosed26 Dec 2022

Introduced: 26 Dec 2022

CVE-2021-38561  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Chainguard gitleaks to version 8.18.2-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gitleaks package and not the gitleaks package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Scores

version 3.1