User impersonation via ambiguous Subject-DN extraction
Published Dec 15, 2025 · Updated Dec 15, 2025
Improper authentication in Elastic Elasticsearch's PKI realm allows remote authenticated users to impersonate other users with a client certificate. PkiRealm passes the rendered Subject DN to the username_pattern regex, allowing crafted RDN text to make the pattern extract an unintended account principal. Exposure requires an enabled PKI realm and a specially crafted client certificate signed by a trusted CA; successful access carries the impersonated user's mapped roles.
Summary
What happened
Improper authentication in Elastic Elasticsearch's PKI realm allows remote authenticated users to impersonate other users with a client certificate. PkiRealm passes the rendered Subject DN to the username_pattern regex, allowing crafted RDN text to make the pattern extract an unintended account principal. Exposure requires an enabled PKI realm and a specially crafted client certificate signed by a trusted CA; successful access carries the impersonated user's mapped roles.
The record
- CVE
- CVE-2025-37731
- Published
- Dec 15, 2025
- Updated
- Dec 15, 2025
- Vendor
- Elastic
- Product
- Elasticsearch
- Classifications
- CWE-287, T1078
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 15, 2025CVE publishedPublication date reported by the CVE source.
- Dec 15, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7.0.0 <=7.17.29
- Affected versionversion=8.0.0 <=8.19.7
- Affected versionversion=9.0.0 <=9.1.7
- Affected versionversion=9.2.0 <=9.2.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo