BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2023-31421 in Elastic Beats and 3 more products

High 7.5

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 ad...

Affects 4 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS0.4%
EPSS percentile25th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Elastic Elastic Beats ≥ 8.0.0, ≤ 8.9.2
Elastic Elastic Agent ≥ 8.0.0, ≤ 8.9.2
Elastic Apm Server ≥ 8.0.0, ≤ 8.9.2
Elastic Elastic Fleet Server ≥ 8.0.0, ≤ 8.9.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-31421
BreachSpider IDBS-2023-GLOBAL-001967-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2023-10-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-295: CWE-295

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-295

CAPEC-475 Signature Spoofing by Improper Validation via CWE-295

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Beats, Elastic Agent, APM Server, and Fleet Server allows for potential man-in-the-middle attacks when these components act as TLS clients and connect to servers using IP addresses without verifying the server certificate's IP SAN.

The attack vector involves an attacker intercepting the TLS connection between the affected Elastic components and a server. By presenting a certificate that is validly signed but does not include the correct IP SAN for the target server, the attacker can impersonate the server and potentially intercept or manipulate the data being transmitted.

Questions

What is CVE-2023-31421?

A vulnerability in Beats, Elastic Agent, APM Server, and Fleet Server allows for potential man-in-the-middle attacks when these components act as TLS clients and connect to servers using IP addresses without verifying the server certificate's IP SAN.

What is the CVSS score for CVE-2023-31421?

CVE-2023-31421 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.4%.

Is CVE-2023-31421 actively exploited?

No confirmed active exploitation of CVE-2023-31421 as of 2026-09-25.

How do I remediate CVE-2023-31421?

Priority: HIGH. Advisory: https://discuss.elastic.co/t/beats-elastic-agent-apm-server-and-fleet-server-8-10-1-security-update-improper-certificate-validation-issue-esa-2023-16/343385 PSIRT: [email protected]

What systems are affected by CVE-2023-31421?

CVE-2023-31421 affects Elastic Elastic Beats, Elastic Agent, Apm Server, Elastic Fleet Server.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Elastic","product":"Elastic Beats","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.