{"id":"CVE-2026-85249","kind":"vulnerability","aliases":["CVE-2026-85249"],"related":[],"title":"Apache Camel Tika: parsed document metadata can set Exchange headers","description":"Improper Input Validation vulnerability in Apache Camel Tika component.\n\nThis issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1.\n\nThe Tika producer mapped every metadata key parsed out of the submitted document onto the Exchange as a header, with no filter applied. Document metadata is attacker-controlled content: the party that supplies the file chooses the metadata keys it carries. A crafted document could therefore set Exchange headers that the rest of the route depends on, including headers in the Camel namespace such as CamelFileName, which downstream components use to decide where content is written. The pattern is the same header-injection class as the consumer advisories published previously, reached here through parsed file content rather than through a protocol header.\n\nUpgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. Parsed document metadata is now filtered through a HeaderFilterStrategy before it is mapped onto the Exchange. A route that was reading a metadata-derived header the filter now blocks will see it missing. For deployments that cannot upgrade immediately, strip the Camel namespace after the Tika producer with removeHeaders(\"Camel*\") before any component that acts on those headers.","summary":"The Apache Camel Tika producer copied every metadata key from a submitted document onto the message as a header without filtering. A crafted file can therefore set headers such as CamelFileName, which downstream components use to decide where content is written.","severity":"medium","cvss":6.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["apache-camel","file-processing","java","package","tika"],"not_affected_if":["no-camel-tika","versions-patched"],"how_to_check":"- Check the Apache Camel version in the project build file (for example `mvn dependency:tree | grep camel-tika`); affected versions are 4.0.0 up to but not including 4.18.5, and 4.19.0 up to but not including 4.22.1.\n- Look for routes that use the Tika producer and then act on headers such as CamelFileName.","fix":"- Upgrade Apache Camel to `4.23.0`, or to `4.18.5` on the 4.18.x LTS stream, or to `4.22.1` on the 4.22.x LTS stream.\n- Until upgraded, add `removeHeaders(\"Camel*\")` after the Tika producer and before any component that acts on those headers.\n- Check routes that read metadata-derived headers, since the fix filters them and they will now be missing.","status":"open","published_at":"2026-10-19T11:17:23+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","triaged_at":"2026-10-25T03:57:13+00:00","updated_at":"2026-10-25T03:57:13+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-25T03:57:13Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Apache Camel to `4.23.0`, or to `4.18.5` on the 4.18.x LTS stream, or to `4.22.1` on the 4.22.x LTS stream.\n- Until upgraded, add `removeHeaders(\"Camel*\")` after the Tika producer and before any component that acts on those headers.\n- Check routes that read metadata-derived headers, since the fix filters them and they will now be missing.","reach":"unknown","title":"Apache Camel Tika: parsed document metadata can set Exchange headers","impact":"medium","summary":"The Apache Camel Tika producer copied every metadata key from a submitted document onto the message as a header without filtering. A crafted file can therefore set headers such as CamelFileName, which downstream components use to decide where content is written.","category":"package","nicknames":[],"who_cares":["apache-camel","java","tika","file-processing"],"confidence":0.7,"needs_auth":"unknown","worst_case":"Attacker-chosen headers redirect file writes to unintended paths.","analyst_note":"","how_to_check":"- Check the Apache Camel version in the project build file (for example `mvn dependency:tree | grep camel-tika`); affected versions are 4.0.0 up to but not including 4.18.5, and 4.19.0 up to but not including 4.22.1.\n- Look for routes that use the Tika producer and then act on headers such as CamelFileName.","needs_analyst":false,"not_affected_if":["no-camel-tika","versions-patched"],"who_is_affected":"Applications that use the Apache Camel Tika component to parse uploaded or received documents and then route on the resulting headers are exposed. The document supplier controls the metadata keys, so the risk depends on whether downstream components such as file writers rely on Camel-namespace headers. Teams that do not use camel-tika can skip this.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000704,"input_tokens":3668,"output_tokens":675,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':12A,15A '-85249':13A,16A '4.0.0':82C '4.18':205C '4.18.5':84C,213C '4.19.0':86C '4.22':217C '4.22.1':88C,225C '4.23.0':197C 'act':281C 'advisori':178C 'affect':78C 'apach':1A,18B,27B,72C,79C,195C 'apache-camel':17B 'appli':111C 'attack':116C 'attacker-control':115C 'block':255C 'camel':2A,19B,28B,73C,80C,151C,196C,268C,276C 'camelfilenam':56B,155C 'cannot':263C 'carri':130C 'choos':125C 'class':174C 'compon':59B,75C,158C,279C 'consum':177C 'content':64B,118C,163C,186C 'control':117C 'copi':31B 'could':134C 'craft':48B,132C 'cve':11A,14A 'decid':62B,161C 'depend':145C 'deploy':261C 'deriv':250C 'document':5A,38B,101C,112C,133C,227C 'downstream':58B,157C 'everi':32B,93C 'exchang':9A,104C,137C,241C 'file':21B,49B,124C,185C 'file-process':20B 'filter':46B,110C,231C,253C 'fix':199C 'header':10A,44B,53B,107C,138C,148C,172C,192C,251C,284C 'header-inject':171C 'headerfilterstrategi':234C 'immedi':265C 'improp':67C 'includ':147C 'inject':173C 'input':68C 'issu':77C,201C 'java':23B 'key':34B,95C,128C 'lts':207C,219C 'map':92C,238C 'messag':41B 'metadata':6A,33B,94C,113C,127C,228C,249C 'metadata-deriv':248C 'miss':259C 'namespac':152C,269C 'onto':39B,102C,239C 'packag':24B 'pars':4A,96C,184C,226C 'parti':120C 'pattern':167C 'previous':180C 'process':22B 'produc':30B,91C,273C 'protocol':191C 'publish':179C 'rather':187C 'reach':181C 'read':246C 'releas':208C,220C 'removehead':275C 'rest':141C 'rout':144C,243C 'see':257C 'set':8A,52B,136C 'stream':209C,221C 'strip':266C 'submit':37B,100C 'suppli':122C 'therefor':51B,135C 'tika':3A,25B,29B,74C,90C,272C 'upgrad':193C,211C,223C,264C 'use':60B,159C 'user':202C,214C 'valid':69C 'vulner':70C 'without':45B 'written':66B,165C 'x':206C,218C","nicknames":[],"mitigations":[],"who_affected":"Applications that use the Apache Camel Tika component to parse uploaded or received documents and then route on the resulting headers are exposed. The document supplier controls the metadata keys, so the risk depends on whether downstream components such as file writers rely on Camel-namespace headers. Teams that do not use camel-tika can skip this.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-19T11:17:23+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","cvss_by":"security@apache.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-85249","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85249","severity":null,"published_at":"2026-10-19T11:17:23+00:00","modified_at":"2026-10-19T20:45:51+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","fetched_at":"2026-10-23T22:28:57+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}