Elasticsearch
CVE-2025-37731
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain client certificate from a trusted CA
-
DeliveryCraft certificate fields to spoof identity
-
ExploitPresent cert to PKI realm endpoint
-
ExecutionPKI realm maps to impersonated user
-
ImpactAccess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
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.
Primary rating from NVD.
CVSS VectorNVD
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
More in Elasticsearch
View allThe Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut
Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp
Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a
A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.
A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit
Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen
Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an
The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp
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
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB