Skip to main content

Elasticsearch CVE-2025-37731

HIGH
Improper Authentication (CWE-287)
2025-12-15 security@elastic.co
7.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain client certificate from a trusted CA
  2. Delivery
    Craft certificate fields to spoof identity
  3. Exploit
    Present cert to PKI realm endpoint
  4. Execution
    PKI realm maps to impersonated user
  5. Impact
    Access cluster data and APIs as that user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the Elasticsearch PKI (public key infrastructure) realm to be enabled and configured for client-certificate authentication - this is not a default authentication mode and must be explicitly set up by the operator. The attacker must additionally possess a specially crafted X.509 client certificate that is signed by a Certificate Authority already configured as trusted by the target cluster's PKI realm; a self-signed or untrusted-CA certificate will not work. The practical limiting factor is therefore access to a certificate from a trusted CA that can be manipulated into impersonating another user, which confines realistic exploitation to environments where the trusted CA issues certificates beyond the intended high-trust population. No user interaction is required, but the certificate prerequisite and the need for a PKI-realm deployment substantially narrow the exposed population.

Impact

This is a genuine but conditionally-gated authentication-bypass issue rather than a mass-exploitation emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N = 7.4 High) correctly captures the tension in this flaw: the attack is network-reachable and requires no pre-existing privileges (PR:N, because the vulnerability IS the authentication bypass), but carries High attack complexity (AC:H) because the attacker must possess a specially crafted client certificate signed by a legitimate, trusted Certificate Authority that the target Elasticsearch cluster already trusts. No EPSS score, CISA KEV entry, or public POC was provided in the intelligence, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The high-impact confidentiality and integrity rating (C:H/I:H) is plausible because successful impersonation grants the privileges of the impersonated user, potentially including administrative accounts. The decisive limiting factor - obtaining a cert from a CA already trusted by the PKI realm - means real-world risk is concentrated in environments where the trusted CA also issues certificates to lower-trust or externally-reachable parties, making this a targeted/conditional risk rather than a broadly wormable one. Note the key gaps: no EPSS, KEV, POC, or SSVC data was supplied, so exploitation-likelihood signals are entirely absent and this assessment rests on the CVSS vector and vendor description alone.

Exploit ScenarioDerived

In a cluster using the Elasticsearch PKI realm for certificate-based authentication, an attacker who can obtain a client certificate signed by a CA the cluster trusts crafts that certificate so its fields cause the PKI realm to map the connection to a different, higher-privileged user identity. Presenting the crafted certificate over the network, the attacker is authenticated as the impersonated user and gains that user's read/write access to indices and cluster APIs. No public exploit code was identified at time of analysis, and success hinges on the attacker first acquiring a cert from a trusted CA.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Authentication bypass in the Elasticsearch PKI realm lets a remote, unauthenticated attacker who presents a specially crafted X.509 client certificate - signed by a Certificate Authority the cluster already trusts - be resolved to another user's identity, granting that user's read and write privileges (CVSS 3.1:7.4, C:H/I:H/A:N). Exploitation is gated by two prerequisites: the PKI realm must be explicitly enabled and configured for client-certificate authentication (it is not a default mode), and the attacker must hold a certificate issued by a CA in the cluster's trusted set, so realistic exposure is limited to deployments whose trusted CA issues certificates beyond a small high-trust population. No public exploit code has been identified at time of analysis, and the issue is not listed in CISA KEV; Elastic has published a fix in the ESA-2025-27 advisory covering Elasticsearch 8.19.8, 9.1.8, and 9.2.2.

RemediationAI

Apply the vendor-released patch by upgrading to Elasticsearch 8.19.8, 9.1.8, or 9.2.2 as described in ESA-2025-27 (https://discuss.elastic.co/t/elasticsearch-8-19-8-9-1-8-and-9-2-2-security-update-esa-2025-27/384063); these are the exact fixed versions named in the advisory, and there is no separate mitigation plugin. If an immediate upgrade is not possible, the most effective compensating control is to disable the PKI realm (set the realm to disabled and remove it from the authentication chain) so certificate-based clients must instead use another realm - the trade-off is that all certificate-authenticated clients, including legitimate service accounts, lose access until the upgrade or until they are migrated to API keys or another realm. A narrower control is to shrink the trust set: remove any broad or internal-issuing CA from xpack.security.authc.realms.pki.<realm>.truststore and retain only CAs whose issuance population is genuinely limited to the intended high-trust users, which reduces but does not eliminate the impersonation precondition and requires re-issuing certificates for clients signed by the removed CA. Tightening role mappings so certificate-derived identities receive least-privilege roles limits blast radius but does not block the bypass itself. Finally, audit Elasticsearch authentication logs for certificate-authenticated sessions whose resolved username does not match the certificate's expected owner, since detection is difficult once the impersonated identity has legitimate-looking privileges.

Affected Packages

maven org.elasticsearch.plugin:x-pack-core fix: 8.19.8, 9.1.8, 9.2.2
maven org.elasticsearch.plugin:x-pack-security fix: 8.19.8, 9.1.8, 9.2.2
maven org.elasticsearch:elasticsearch fix: 8.19.8, 9.1.8, 9.2.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is classified as CWE-287 (Improper Authentication) and lives in the Elasticsearch PKI realm, the authentication realm that maps X.509 client certificates presented over TLS to Elasticsearch user identities. In a properly functioning PKI realm, the certificate's subject attributes (for example the distinguished name or subject alternative name) are validated and resolved against configured username/role mappings so that the certificate can only ever authenticate as its legitimate owner. Here that identity-resolution step is insufficiently strict, so a certificate that is legitimately signed by a trusted CA but crafted in a particular way can be made to resolve to a different user account, effectively an impersonation-based authentication bypass. The attack surface is the HTTP/TLS transport, hence AV:N, with PR:N (unauthenticated in the sense that no Elasticsearch credentials are needed - the client certificate is the credential) and AC:H reflecting the CA-signing and PKI-realm preconditions. Integrity and confidentiality impacts are both High because the impersonated identity's permissions are fully assumed, while availability is unaffected. Note that the CPE data supplied lists elastic:elasticsearch with fully wildcarded version fields, so the exact affected version ranges are not enumerated in the source data; the authoritative scope is defined by the vendor advisory.

Know when Elasticsearch gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

Network-reachable and unauthenticated since the flaw is the auth bypass (PR:N), but AC:H because a certificate signed by an already-trusted CA is required; impersonation yields C:H/I:H, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 7.4 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionNVD

Improper Authentication in Elasticsearch PKI realm can lead to user impersonation via specially crafted client certificates. A malicious actor would need to have such a crafted client certificate signed by a legitimate, trusted Certificate Authority.

Executive ViewAI

Why It Matters

Elasticsearch clusters that use the PKI realm for client-certificate authentication can be accessed by an attacker holding any certificate issued by a Certificate Authority the cluster already trusts, allowing that attacker to impersonate another user and read or modify the data that user can reach. Exposure is limited to deployments where the PKI realm is explicitly enabled and where the trusted CA issues certificates beyond a small, tightly controlled high-trust population, so organizations running public or broadly issued CAs against Elasticsearch face the greatest risk. No public exploit code has been identified at time of analysis and the issue is not listed in CISA KEV, but Elastic has published fixed versions, so remediation is available and should be prioritized for internet-reachable or multi-tenant clusters.

Business Impact: High
Compensating Controls

Apply vendor patch (Elasticsearch 8.19.8, 9.1.8, or 9.2.2 per ESA-2025-27). If upgrade cannot be completed immediately, disable the PKI realm or restrict the trusted CA set to a small high-trust population and restrict network access to Elasticsearch endpoints.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
High
Elasticsearch is a widely deployed enterprise search and logging platform
Data Quality
2 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)NVD

cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*
CVE-2015-1427 CRITICAL POC
9.8 Feb 17

The Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s

CVE-2014-3120 HIGH POC
8.1 Jul 28

The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut

CVE-2015-5531 MEDIUM POC
5.0 Aug 17

Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp

CVE-2015-3337 MEDIUM POC
4.3 May 01

Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a

CVE-2023-31419 HIGH
7.5 Oct 26

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause

CVE-2026-82409 HIGH POC
8.4 Sep 23

Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r

CVE-2021-22146 HIGH POC
7.5 Jul 21

All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.

CVE-2021-22145 MEDIUM POC
6.5 Jul 21

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit

CVE-2026-72649 HIGH
8.8 Sep 01

Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen

CVE-2026-72642 HIGH
8.8 Aug 13

Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an

CVE-2020-7014 HIGH
8.8 Jun 03

The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp

CVE-2020-7009 HIGH
8.8 Mar 31

Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy