Elastic BeatsApplication · Elastic

CVE-2023-31421

HIGH · 7.5 CVSS v3.1 Published 2023-10-26
Fix available
A fix is available. Upgrade to after 8.9.2 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

When Beats, Elastic Agent, APM Server, or Fleet Server act as TLS clients and connect to a server using an IP address (instead of a hostname), they fail to validate that the server certificate's IP Subject Alternative Name (SAN) values match the target IP address. Certificate signature validation still works, but the IP SAN check is bypassed, allowing connections to servers presenting certificates not issued for that specific IP.

MitigationEnsure TLS servers present certificates with IP SANs matching the target IP address, or update to patched versions of the affected products when released. Alternatively, connect using hostnames instead of IP addresses where standard hostname-based certificate validation is properly enforced.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Elastic BeatsApplication
Affected:>= 8.0.0, <= 8.9.2
Elastic AgentApplication
Affected:>= 8.0.0, <= 8.9.2
Apm ServerApplication
Affected:>= 8.0.0, <= 8.9.2
Elastic Fleet ServerApplication
Affected:>= 8.0.0, <= 8.9.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed Elastic product and version
    Run the version command for the product: for Beats (filebeat, metricbeat, etc.) run 'product version', for Elastic Agent run 'elastic-agent version', for APM Server run 'apm-server version', or check the installed package version via system package manager
    Affected if Version is 8.0.0 through 8.9.2 inclusive, or if version cannot be determined but the product is known to be in the 8.x line before 8.9.3
  2. Determine if TLS connections use IP addresses
    Review TLS client configuration files (commonly in /etc/ for Beats, or the agent policy for Elastic Agent/Fleet Server) and look for 'hosts' or 'ssl' settings. Check whether the configured server endpoints use IP addresses (like https://192.168.1.1:9200) rather than hostnames (like https://hostname.example.com:9200)
    Affected if Any TLS client connection is configured to connect using an IP address instead of a hostname; if all connections use hostnames, the IP SAN validation bypass does not apply
  3. Verify SSL/TLS configuration is enabled
    Inspect the SSL/TLS configuration block in the product config file. Look for 'ssl', 'tls', 'certificate', 'key', 'ca' settings under output or input sections that define TLS-encrypted connections to remote servers
    Affected if SSL/TLS is configured and active for outbound connections; if TLS is not in use, the vulnerability is not reachable
  4. Confirm connection target is using certificate-based TLS
    Check the TLS configuration to verify the connection is to a server that presents an X.509 certificate (not mutual TLS with client cert only, not plaintext). Look for 'verification_mode', 'certificate_authorities', or 'ssl' settings indicating server certificate validation is expected
    Affected if Server certificate validation is expected but the target is specified as an IP address, creating the condition where IP SAN matching is bypassed

You are affected if you have Elastic Beats, Elastic Agent, APM Server, or Fleet Server version 8.0.0-8.9.2 with TLS connections configured to servers using IP addresses instead of hostnames.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 8.9.2
Interim mitigation

Ensure TLS servers present certificates with IP SANs matching the target IP address, or update to patched versions of the affected products when released. Alternatively, connect using hostnames instead of IP addresses where standard hostname-based certificate validation is properly enforced.

Recommended fix Moderate confidence

8.9.3 or later (8.10.x, 8.11.x, or latest stable 8.x release)

  1. 1. Identify all Elastic Beats, Elastic Agent, APM Server, and Fleet Server instances running versions 8.0.0 through 8.9.2 in your environment
  2. 2. Plan an upgrade window following your organization's change management process
  3. 3. Upgrade Elastic Beats to version 8.9.3 or later
  4. 4. Upgrade Elastic Agent to version 8.9.3 or later
  5. 5. Upgrade APM Server to version 8.9.3 or later
  6. 6. Upgrade Elastic Fleet Server to version 8.9.3 or later
  7. 7. After upgrading, verify that TLS certificate validation for IP address connections is working correctly
  8. 8. Test a sample TLS connection to a server by IP address to confirm the fix validates IP SANs in the server certificate
Caveat Review Elastic 8.9.3 release notes for any breaking changes; minor version upgrades typically have minimal impact but always test in non-production first

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Elastic Beats Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA3.0 h
21.0 hours of engineering $3,680
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,888.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-31421 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-31421 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data