CVE-2024-23451 Elasticsearch Incorrect Authorization in the Remote Cluster Security API key based security model

Medium 4.4 Published Updated

A malicious user with a valid API key can read arbitrary documents from any index on a remote cluster using the custom transport protocol.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23451?

CVE-2024-23451 is a medium-severity missing authorization vulnerability in Elastic Elasticsearch, published on 27 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Incorrect Authorization issue exists in the API key based security model for Remote Cluster Security, which is currently in Beta, in Elasticsearch 8.10.0 and before 8.13.0. This allows a malicious user with a valid API key for a remote cluster configured to use the new Remote Cluster Security to read arbitrary documents from any index on the remote cluster, and only if they use the Elasticsearch custom transport protocol to issue requests with the target index ID, the shard ID and the document ID. None of Elasticsearch REST API endpoints are affected by this issue.

Weakness: CWE-863

Which versions are affected by CVE-2024-23451?

3 open source packages ship an affected version, including org.elasticsearch:elasticsearch and elasticsearch. It affects 1 product.

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenFrom 8.10.08.13.0
org.elasticsearch:elasticsearch MavenFrom 8.10.08.13.0
elasticsearch BitnamiFrom 8.10.08.13.0

Products include Elastic Elasticsearch.

How do I fix CVE-2024-23451?

Upgrade org.elasticsearch:elasticsearch to 8.13.0 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-23451 being exploited?

There is no known exploitation of CVE-2024-23451 in the wild and no public exploit code.

All Elastic Elasticsearch vulnerabilities

Sources

Also known as BIT-elasticsearch-2024-23451, GHSA-r3hx-qfh5-r9m7, UBUNTU-CVE-2024-23451.

Is CVE-2024-23451 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free