CVE-2023-31421 Beats, Elastic Agent, APM Server, and Fleet Server Improper Certificate Validation issue
Attackers can bypass TLS certificate validation when clients connect via IP address, enabling man-in-the-middle attacks against Elastic observability components.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-31421?
CVE-2023-31421 is a medium-severity vulnerability in Elastic APM Server, published on 26 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
It was discovered that when acting as TLS clients, Beats, Elastic Agent, APM Server, and Fleet Server did not verify whether the server certificate is valid for the target IP address; however, certificate signature validation is still performed. More specifically, when the client is configured to connect to an IP address (instead of a hostname) it does not validate the server certificate's IP SAN values against that IP address and certificate validation fails, and therefore the connection is not blocked as expected.
Weakness: CWE-295
Which versions are affected by CVE-2023-31421?
It affects 4 products.
Products include Elastic Apm Server, Elastic Elastic Agent, Elastic Elastic Beats, Elastic Elastic Fleet Server.
How do I fix CVE-2023-31421?
No fix has been published for CVE-2023-31421 yet. Limit exposure of the affected software until one is available.
Is CVE-2023-31421 being exploited?
There is no known exploitation of CVE-2023-31421 in the wild and no public exploit code.
Other vulnerabilities in Elastic APM Server
Sources
Also known as GHSA-4x46-8gg7-f9vx.