Improper Certificate Validation Affecting github.com/elastic/apm-server package, versions >=8.0.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% (43rd 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-GITHUBCOMELASTICAPMSERVER-6055619
  • 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/apm-server to version 8.10.1 or higher.

Overview

github.com/elastic/apm-server is a the package that receives data from Elastic APM agents and transforms it into Elasticsearch documents.

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 Base Scores

version 3.1