CVE-2026-78329: CWE-20 Improper input validation in Apache Software Foundation Apache Camel
Description
CVE-2026-78329 is a critical improper input validation vulnerability in the Apache Camel Undertow component. The issue arises because the default headerFilterStrategy used by UndertowEndpoint overwrites the intended UndertowHeaderFilterStrategy, causing undertow-specific header filtering to be bypassed. This allows legacy websocket. Exchange-header prefixed headers to be mapped onto the Exchange without proper filtering, potentially enabling an undertow WebSocket producer to dispatch messages incorrectly. The vulnerability affects Apache Camel versions from 4.11.0 before 4.14.9, from 4.15.0 before 4.18.4, and from 4.19.0 before 4.22.0. Upgrading to Apache Camel 4.22.0 or the respective LTS patch releases mitigates the issue. For deployments unable to upgrade immediately, explicit configuration of the headerFilterStrategy and manual header stripping are recommended as mitigations.
CVSS v3.1
Score 9.8critical
Affected software
Apache Software Foundation
Apache Camel
pkg:maven/Apache Software Foundation/org.apache.camel:camel-undertowRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Apache Camel's Undertow component is due to improper input validation caused by the UndertowEndpoint defaulting its headerFilterStrategy to the base HttpHeaderFilterStrategy, which overwrites the UndertowHeaderFilterStrategy that performs undertow-specific filtering. As a result, the legacy websocket. Exchange-header prefix is not filtered at the undertow transport boundary, allowing inbound wire headers with that prefix to be mapped onto the Exchange. An undertow WebSocket producer can then read these headers as dispatch directives and potentially deliver messages to unintended peers. The flaw does not affect Rest DSL consumers. The issue is not a regression of CVE-2025-30177 but a separate problem where the undertow-specific filtering strategy was orphaned and never applied in affected releases. The vulnerability is fixed in Apache Camel 4.22.0, 4.14.9 (LTS), and 4.18.4. Workarounds include explicitly configuring the headerFilterStrategy and removing websocket.* headers at the trust boundary. However, some websocket. headers remain part of the API contract and are not filtered by the UndertowProducer, so routes receiving untrusted messages from non-undertow consumers must manually strip these headers.
Potential Impact
The vulnerability allows improper header filtering in the Undertow component of Apache Camel, which can lead to WebSocket producers delivering messages to unintended peers by interpreting unfiltered legacy websocket. Exchange-header prefixed headers as dispatch directives. This can cause confidentiality, integrity, and availability impacts as indicated by the CVSS score of 9.8 (critical). Rest DSL consumers are not affected. The vulnerability affects multiple Apache Camel release streams prior to the fixed versions.
Mitigation Recommendations
A fix is available by upgrading to Apache Camel version 4.22.0, or to 4.14.9 for the 4.14.x LTS stream, or 4.18.4 for the 4.18.x stream. For deployments unable to upgrade immediately, explicitly configure the UndertowHeaderFilterStrategy by binding it in the registry and referencing it on the endpoint, e.g., undertow:http://0.0.0.0:8080/foo?headerFilterStrategy=#myStrategy. Additionally, strip websocket.* headers at the trust boundary using removeHeaders("websocket.*"). Note that some websocket. headers remain part of the API contract and are not filtered by the UndertowProducer, so routes receiving untrusted messages from non-undertow consumers must manually strip these headers. The vendor advisory does not indicate that the vulnerability is already mitigated or that no action is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-08-24T09:47:36.708Z
- State
- PUBLISHED
Threat ID: 6a8c76e0acd9273b49d9f01d
Added to database: 08/24/2026, 16:52:48 UTC
Last enriched: 09/10/2026, 10:07:29 UTC
Last updated: 10/07/2026, 06:48:18 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.