Improper Certificate Validation Affecting github.com/elastic/elastic-agent package, versions >=8.2.0 <8.10.1


Severity

Recommended
0.0
medium
0
10

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

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-GOLANG-GITHUBCOMELASTICELASTICAGENT-6055617
  • published15 Nov 2023
  • disclosed26 Oct 2023
  • creditUnknown

Introduced: 26 Oct 2023

CVE-2023-31421  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade github.com/elastic/elastic-agent to version 8.10.1 or higher.

Overview

github.com/elastic/elastic-agent is an a single, unified way to add monitoring for logs, metrics, and other types of data to a host.

Affected versions of this package are vulnerable to Improper Certificate Validation when acting as TLS client due to missing verification if the server certificate is valid for the target IP address. An attacker can exploit this to establish a connection with an invalid server certificate by presenting a certificate that passes signature validation but fails IP SAN values validation.

Note:

This is only exploitable if the client is configured to connect to an IP address instead of a hostname.

References

CVSS Scores

version 3.1