CVE-2024-12539
NoneElasticsearch Incorrect Authorization vulnerability
CVSS
—
EPSS
0.5%
Published
Dec 17, 2024
CISA due date
—
Cloudanix analysis
A flaw in a search system lets some users view private information they are not supposed to see.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper authorization on certain queries bypasses Document Level Security checks in Elasticsearch, allowing access to documents outside assigned roles.
Why it matters to the business
Sensitive data may be exposed to unauthorized users, increasing breach risk and compliance costs; low exploit likelihood and no known ransomware use reduce urgency but patching remains needed for older Ubuntu Firefox and Thunderbird deployments.
How an attack unfolds
An attacker with limited Elasticsearch access crafts queries that evade DLS enforcement to retrieve restricted documents; no named threat actors or campaigns are associated.
How to fix it
Upgrade affected packages to the listed fixed versions: firefox (Ubuntu:14.04:LTS) to 45.0+build2-0ubuntu0.14.04.1 and thunderbird (Ubuntu:14.04:LTS) to 1:38.7.2+build1-0ubuntu0.14.04.1; apply vendor patches immediately given the six-hundred-plus days since disclosure.
How to confirm the fix worked
Confirm package versions match the fixed releases above and test that role-restricted queries now correctly enforce Document Level Security.
Typical attack path
- Gain access to an Elasticsearch cluster with a low-privilege role
- Identify queries involving document-level security
- Craft and submit malformed queries to bypass authorization
- Retrieve and exfiltrate unauthorized documents
How to detect it
Review Elasticsearch query logs for unusual patterns that return documents outside expected role scopes; no ransomware or APT indicators are known.
What your security team should do
- Prioritize upgrades on any remaining Ubuntu 14.04 systems running the listed packages
- Review and tighten Elasticsearch role mappings and query logging
- Monitor EPSS trend for any increase above current low levels
The record
An issue was discovered where improper authorization controls affected certain queries that could allow a malicious actor to circumvent Document Level Security in Elasticsearch and get access to documents that their roles would normally not allow.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.elasticsearch:elasticsearch | 8.16.0 | 8.16.2 |
| Bitnami | elasticsearch | 8.16.0 | 8.16.2 |
| Bitnami | elasticsearch | 8.16.0 | 8.17.0 |
| Chainguard | elasticsearch-8 | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-8-bitnami | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-8-config | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-8-iamguarded | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-config | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-fips-8 | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-fips-8-bitnami | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-fips-8-config | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-fips-8-policy-140-2 | 0 | 8.17.0-r0 |
| Chainguard | elasticsearch-fips-8-policy-140-3 | 0 | 8.17.0-r0 |
| Chainguard | ruby3.2-elasticsearch | 0 | 8.17.0-r0 |
| Chainguard | ruby3.3-elasticsearch | 0 | 8.17.0-r0 |
| Ubuntu:16.04:LTS | elasticsearch | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | elasticsearch | 0 | No fix |
| Wolfi | ruby3.2-elasticsearch | 0 | 8.17.0-r0 |
| Wolfi | ruby3.3-elasticsearch | 0 | 8.17.0-r0 |
| maven | org.elasticsearch/elasticsearch | 8.16.0 | 8.16.2 |
Related vulnerabilities
- CVE-2025-37731 Improper Authentication in Elasticsearch PKI realm can lead to user impersonation via… Also affects org.elasticsearch:elasticsearch
- CVE-2024-23444 It was discovered by Elastic engineering that when elasticsearch-certutil CLI tool is… Also affects org.elasticsearch:elasticsearch
- CVE-2023-49921 An issue was discovered by Elastic whereby Watcher search input logged the search query… Also affects org.elasticsearch:elasticsearch
- CVE-2024-37280 A flaw was discovered in Elasticsearch, affecting document ingestion when an index… Also affects org.elasticsearch:elasticsearch
- CVE-2024-23449 An uncaught exception in Elasticsearch >= 8.4.0 and < 8.11.1 occurs when an encrypted PDF… Also affects org.elasticsearch:elasticsearch
- CVE-2024-23451 Incorrect Authorization issue exists in the API key based security model for Remote… Also affects org.elasticsearch:elasticsearch
- CVE-2024-23450 A flaw was discovered in Elasticsearch, where processing a document in a deeply nested… Also affects org.elasticsearch:elasticsearch
- CVE-2023-46673 It was identified that malformed scripts used in the script processor of an Ingest… Also affects org.elasticsearch:elasticsearch