Improper Validation of Array Index Affecting golang-tests package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.1% (42nd 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-RHEL7-GOLANGTESTS-1400346
  • published26 Jul 2021
  • disclosed2 Jan 2021

Introduced: 2 Jan 2021

CVE-2020-28851  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 golang-tests.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-tests package and not the golang-tests package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

In x/text in Go 1.15.4, an "index out of range" panic occurs in language.ParseAcceptLanguage while parsing the -u- extension. (x/text/language is supposed to be able to parse an HTTP Accept-Language header.)

CVSS Scores

version 3.1