Skip to main content
Vulnerability Database/CVE-2024-23449

CVE-2024-23449: Elastic Elasticsearch PDF Processing DoS Flaw

CVE-2024-23449 is a denial of service vulnerability in Elastic Elasticsearch that causes ingest nodes to crash when processing encrypted PDFs. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-23449 Overview

CVE-2024-23449 is a denial-of-service vulnerability in Elastic Elasticsearch versions >= 8.4.0 and < 8.11.1. The flaw stems from an uncaught exception [CWE-248] in the attachment ingest processor. When an encrypted PDF is submitted to the processor through the REST API, the Elasticsearch ingest node crashes while attempting to parse the file. Password-protected PDFs and unencrypted PDFs do not trigger the condition. Elastic addressed the issue in Elasticsearch 8.11.1 as part of security advisory ESA-2024-05.

Critical Impact

A remote, unauthenticated attacker able to reach the ingest attachment processor can crash the ingest node, degrading availability of the Elasticsearch cluster.

Affected Products

  • Elastic Elasticsearch 8.4.0 through 8.11.0
  • Elasticsearch ingest nodes configured with the attachment processor
  • Deployments exposing the ingest REST API to untrusted clients

Discovery Timeline

  • 2024-03-29 - CVE-2024-23449 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-23449

Vulnerability Analysis

The attachment ingest processor in Elasticsearch uses Apache Tika to extract text and metadata from documents during indexing. When the processor receives an encrypted PDF through the REST ingest API, the underlying parser raises an exception that the ingest pipeline does not catch. The uncaught exception propagates up through the ingest node thread, causing the node to crash.

The condition is deterministic. A single crafted request to an endpoint that invokes an attachment processor is sufficient to terminate the targeted ingest node. Because the attack is delivered over the network and requires no authentication or user interaction, any client with access to the ingest endpoint can trigger the crash. The impact is limited to availability, with no disclosure or modification of indexed data.

Root Cause

The root cause is missing exception handling [CWE-248] around the PDF parsing path used by the attachment processor. Encrypted PDFs produce an error state that the processor does not translate into a controlled pipeline failure. The result is an unhandled runtime exception that terminates the ingest worker instead of returning an error response.

Attack Vector

An attacker submits an encrypted PDF to an ingest pipeline that uses the attachment processor. The request is a standard REST call carrying the Base64-encoded document. Processing the attachment triggers the uncaught exception and crashes the ingest node. Repeating the request against surviving nodes can cause recurring outages until the cluster is patched or the vulnerable pipeline is removed.

No verified public exploit code is available for this vulnerability. See the Elastic Discuss Security Update ESA-2024-05 for vendor technical details.

Detection Methods for CVE-2024-23449

Indicators of Compromise

  • Unexpected termination of Elasticsearch ingest node processes with uncaught exception stack traces referencing the attachment processor or PDF parsing classes.
  • Ingest pipeline failures correlated with REST requests containing Base64-encoded PDF payloads.
  • Repeated client requests to _ingest/pipeline/*/_simulate or document index endpoints that invoke the attachment processor.

Detection Strategies

  • Monitor Elasticsearch logs for UncaughtExceptionHandler entries and parser exceptions originating from Apache Tika PDF components.
  • Alert on ingest node restarts and cluster state changes that coincide with attachment processor activity.
  • Inspect REST access logs for anomalous volumes of document ingestion requests from a single source.

Monitoring Recommendations

  • Enable audit logging on Elasticsearch and forward node and ingest logs to a centralized analytics platform for correlation.
  • Track ingest pipeline error rates and node uptime as service health metrics with alerting thresholds.
  • Review which pipelines reference the attachment processor and inventory the clients authorized to use them.

How to Mitigate CVE-2024-23449

Immediate Actions Required

  • Upgrade affected clusters to Elasticsearch 8.11.1 or later as described in security advisory ESA-2024-05.
  • Restrict network access to Elasticsearch ingest endpoints so that only trusted applications can submit documents.
  • Audit ingest pipelines and remove the attachment processor from pipelines that do not require PDF parsing.

Patch Information

Elastic resolved CVE-2024-23449 in Elasticsearch 8.11.1. Deployment details and the vendor advisory are published in Elastic Discuss Security Update ESA-2024-05. Operators running any 8.x release between 8.4.0 and 8.11.0 should prioritize the upgrade.

Workarounds

  • Disable or remove ingest pipelines that use the attachment processor until the cluster is upgraded.
  • Validate and filter incoming documents at an application-tier gateway to reject encrypted PDFs before they reach Elasticsearch.
  • Isolate ingest nodes behind authenticated proxies and enforce least-privilege API access with Elasticsearch security features.
bash
# Example: remove a vulnerable pipeline that uses the attachment processor
curl -X DELETE "https://elastic.example.local:9200/_ingest/pipeline/pdf-attachment-pipeline" \
  -u elastic:$ES_PASSWORD

# Example: verify the running Elasticsearch version is patched (>= 8.11.1)
curl -s "https://elastic.example.local:9200" -u elastic:$ES_PASSWORD | grep number

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.