CVE-2025-37731: Elasticsearch PKI Realm Authentication Bypass Vulnerability Allows User Impersonation Through Crafted Client Certificates
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.
Published Dec 15, 2025 · Updated Sep 25, 2026
Affected packages
org.elasticsearch.plugin:x-pack-security
- Ecosystem
- Maven
- Affected
- >= 7.0.0-alpha1, < 8.19.8
- Fixed in
- 8.19.8
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-security
org.elasticsearch.plugin:x-pack-security
- Ecosystem
- Maven
- Affected
- >= 9.0.0-beta1, < 9.1.8
- Fixed in
- 9.1.8
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-security
org.elasticsearch.plugin:x-pack-security
- Ecosystem
- Maven
- Affected
- >= 9.2.0, < 9.2.2
- Fixed in
- 9.2.2
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-security
org.elasticsearch.plugin:x-pack-core
- Ecosystem
- Maven
- Affected
- >= 7.0.0-alpha1, < 8.19.8
- Fixed in
- 8.19.8
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-core
org.elasticsearch.plugin:x-pack-core
- Ecosystem
- Maven
- Affected
- >= 9.0.0-beta1, < 9.1.8
- Fixed in
- 9.1.8
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-core
org.elasticsearch.plugin:x-pack-core
- Ecosystem
- Maven
- Affected
- >= 9.2.0, < 9.2.2
- Fixed in
- 9.2.2
- Check
mvn dependency:tree -Dincludes=org.elasticsearch.plugin:x-pack-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to sealonohana, levpachmanov.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-37731
- https://discuss.elastic.co/t/elasticsearch-8-19-8-9-1-8-and-9-2-2-security-update-esa-2025-27/384063
- https://github.com/elastic/elasticsearch/commit/cd97b8566bf56e628070021300784cb9cee0286f
- https://github.com/elastic/elasticsearch/commit/d8a408da79f214395845d99d241e832077045983
- https://github.com/elastic/elasticsearch/commit/e519fe4c51a3c887675eb7daea2f914738847f23
- https://github.com/advisories/GHSA-m9gh-789g-q5pv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
