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-2026-85249 Overview
CVE-2026-85249 is an improper input validation vulnerability [CWE-20] in the Apache Camel Tika component. The Tika producer maps every metadata key parsed from a submitted document onto the Camel Exchange as a header, without applying any filter. Because document metadata is attacker-controlled, a crafted file can set Exchange headers that downstream route components rely on. This includes headers in the Camel namespace such as CamelFileName, which influences where content is written. The flaw affects Apache Camel versions 4.0.0 before 4.18.5 and 4.19.0 before 4.22.1.
Critical Impact
Attackers can inject arbitrary Camel headers through document metadata, redirecting file writes and altering route behavior across any pipeline that processes untrusted documents via the Tika producer.
Affected Products
- Apache Camel 4.0.0 through 4.18.4 (LTS stream)
- Apache Camel 4.19.0 through 4.22.0 (LTS stream)
- Apache Camel Tika component
Discovery Timeline
- 2026-10-19 - CVE-2026-85249 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-85249
Vulnerability Analysis
The Apache Camel Tika component wraps Apache Tika to extract text and metadata from binary documents such as PDFs, Office files, and images. In the vulnerable implementation, the Tika producer iterates over every metadata key returned by the parser and copies it directly onto the Camel Exchange as a message header. No HeaderFilterStrategy sits between the parser output and the Exchange, so attacker-supplied metadata names are treated as trusted route state.
The exposure matches the header-injection class previously addressed in Camel consumer advisories, but reaches the Exchange through parsed file content rather than a network protocol header. Routes that use the Tika producer upstream of file writers, HTTP clients, or JMS producers can have their routing decisions overridden by any party that supplies the input document.
Root Cause
The root cause is the absence of input validation on metadata keys produced by Tika before they are promoted to Camel headers. The producer trusts the key namespace of parsed metadata, which allows headers in the reserved Camel* namespace to be overwritten. Downstream components read these headers to make control-flow decisions, including file destination paths through CamelFileName.
Attack Vector
An attacker submits a document containing crafted metadata entries whose keys collide with Camel internal headers. When the Tika producer processes the file, those keys are mapped onto the Exchange, overriding values set earlier in the route. A subsequent file: endpoint reading CamelFileName writes content to an attacker-chosen path. The same technique can target other Camel headers to redirect HTTP calls, change JMS destinations, or alter conditional branches in a route.
No authentication is required when the vulnerable route accepts documents from untrusted sources. See the Apache Camel CVE-2026-85249 Advisory for technical details.
Detection Methods for CVE-2026-85249
Indicators of Compromise
- Unexpected files written outside configured output directories by Camel file: producers downstream of a Tika step.
- Camel route logs showing header values such as CamelFileName or other Camel* headers changing after the Tika producer executes.
- Processed documents whose embedded metadata keys begin with Camel or match internal Camel header names.
Detection Strategies
- Enable Camel route tracing or MDC logging and compare header state before and after the Tika producer, flagging any new keys in the Camel* namespace.
- Scan ingested documents with a Tika parser in a sandbox and alert on metadata keys that collide with reserved Camel header names.
- Inventory running Camel deployments and identify those using versions in the vulnerable ranges 4.0.0 to 4.18.4 and 4.19.0 to 4.22.0.
Monitoring Recommendations
- Monitor filesystem write paths for Camel-managed processes and alert on writes outside expected directories.
- Track outbound requests from Camel routes that follow a Tika step and correlate destinations against route configuration baselines.
- Audit Camel application logs for header mutations originating from parsed document metadata.
How to Mitigate CVE-2026-85249
Immediate Actions Required
- Upgrade to Apache Camel 4.23.0, which contains the fix.
- Users on the 4.18.x LTS stream must upgrade to 4.18.5.
- Users on the 4.22.x LTS stream must upgrade to 4.22.1.
- Review all routes that invoke the Tika producer and confirm which downstream components consume headers derived from parsed metadata.
Patch Information
The fix routes parsed document metadata through a HeaderFilterStrategy before mapping it onto the Exchange, blocking reserved Camel header names from being overwritten by attacker-controlled keys. Routes that previously depended on a metadata-derived header blocked by the filter will see that header missing after upgrade and must be adjusted. Patch details are available in GitHub Pull Request #25819, GitHub Pull Request #25940, GitHub Pull Request #25942, and Apache JIRA Issue CAMEL-24423.
Workarounds
- For deployments that cannot upgrade immediately, strip the Camel namespace after the Tika producer by invoking removeHeaders("Camel*") before any component that acts on those headers.
- Restrict document submission to authenticated and trusted sources until the upgrade is applied.
- Isolate Camel file producers downstream of Tika steps with filesystem permissions that constrain writable paths.
# Configuration example: strip Camel-namespace headers after the Tika producer
from("direct:ingest")
.to("tika:parse")
.removeHeaders("Camel*")
.to("file:/var/data/output");
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

