Out-of-bounds Read Affecting github.com/pandatix/go-cvss/20 package, versions >=0.2.0 <0.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (53rd 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-GOLANG-GITHUBCOMPANDATIXGOCVSS20-3025254
  • published16 Sept 2022
  • disclosed16 Sept 2022
  • creditUnknown

Introduced: 16 Sep 2022

CVE-2022-39213  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade github.com/pandatix/go-cvss/20 to version 0.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read when a full CVSS v2.0 vector string is parsed using ParseVector function.

Workaround

Users who are not able to upgrade to the fixed version, may avoid this issue by parsing only CVSS v2.0 vector strings that do not have all attributes defined (e.g. AV:N/AC:L/Au:N/C:P/I:P/A:C/E:U/RL:OF/RC:C/CDP:MH/TD:H/CR:M/IR:M/AR:M).

References

CVSS Scores

version 3.1