Improper Certificate Validation Affecting golang-tests package, versions <0:1.15.14-1.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.26% (67th 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-AMZN2-GOLANGTESTS-1702579
  • published27 Sept 2021
  • disclosed15 Jul 2021

Introduced: 15 Jul 2021

CVE-2021-34558  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 golang-tests to version 0:1.15.14-1.amzn2.0.1 or higher.
This issue was patched in ALAS2-2021-1694.

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 Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509 certificate matches the expected type when doing a RSA based key exchange, allowing a malicious TLS server to cause a TLS client to panic.

References

CVSS Scores

version 3.1