CVE-2026-78329

Improper input validation vulnerability in Apache Camel Undertow component. This issue affects Apache Camel: from 4.11.0 before 4.14.9, from 4.15.0 before 4.18.4, from 4.19.0 before 4.22.0. UndertowEndpoint defaulted its headerFilterStrategy field to the base HttpHeaderFilterStrategy and pushed that instance into the UndertowHttpBinding it creates lazily, overwriting the UndertowHeaderFilterStrategy that DefaultUndertowHttpBinding installs in its own constructor. Unless a deployment supplied a custom binding or an explicit headerFilterStrategy, the undertow-specific filtering therefore never executed on endpoint-configured routes: the strategy object was constructed and immediately replaced before it could be consulted. The consequence is that the legacy websocket. Exchange-header prefix was not filtered at the undertow transport boundary in either direction, so an undertow HTTP consumer mapped inbound wire headers of that form onto the Exchange, where an undertow WebSocket producer reads them as dispatch directives and can be made to deliver to a peer other than the one the route selected; and header names that undertow itself does not accept were mapped onto the Exchange rather than being skipped. Rest DSL consumers were never affected, because UndertowComponent assigns UndertowRestHeaderFilterStrategy explicitly, which extends the undertow strategy. This is not a regression of CVE-2025-30177: the base HttpHeaderFilterStrategy configures the inbound Camel-prefix filter itself, so the protection introduced by that advisory continued to work through the base class and was never lost. What the change did was leave the undertow strategy orphaned on the endpoint path, with the effect that two subsequent corrections written into it - one skipping header names undertow rejects, one filtering the legacy websocket. prefix in both directions - were applied to a class the endpoint no longer used and never took effect in the releases that shipped them. Users are recommended to upgrade to version 4.22.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.9. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.4. For deployments that cannot upgrade immediately, configure the strategy explicitly rather than relying on the default, for example by binding an UndertowHeaderFilterStrategy in the registry and referencing it on the endpoint as undertow:http://0.0.0.0:8080/foo?headerFilterStrategy=#myStrategy, and additionally strip the dispatch headers at the trust boundary with removeHeaders(“websocket.*”). Note a residual limitation that upgrading does not remove: the undertow component deliberately keeps the websocket. values as part of its externally visible API contract, and UndertowProducer reads them with in.getHeader, which does not consult a HeaderFilterStrategy at all. The restored filtering is therefore defence in depth at the undertow transport boundary only. A route that carries an untrusted message from a non-undertow consumer into an undertow producer is not protected by this fix and must strip those headers itself.
References
Link Resource
https://camel.apache.org/security/CVE-2026-78329.html Mailing List Vendor Advisory
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*

History

12 Oct 2026, 15:10

Type Values Removed Values Added
Summary
  • (es) Vulnerabilidad de validación de entrada incorrecta en el componente Undertow de Apache Camel. Este problema afecta a Apache Camel: desde 4.11.0 antes de 4.14.9, desde 4.15.0 antes de 4.18.4, desde 4.19.0 antes de 4.22.0. UndertowEndpoint estableció por defecto su campo headerFilterStrategy a la HttpHeaderFilterStrategy base y empujó esa instancia en el UndertowHttpBinding que crea de forma perezosa, sobrescribiendo la UndertowHeaderFilterStrategy que DefaultUndertowHttpBinding instala en su propio constructor. A menos que una implementación suministrara un binding personalizado o una headerFilterStrategy explícita, el filtrado específico de undertow, por lo tanto, nunca se ejecutó en rutas configuradas por el endpoint: el objeto de estrategia fue construido e inmediatamente reemplazado antes de que pudiera ser consultado. La consecuencia es que el prefijo de cabecera de intercambio websocket. heredado no fue filtrado en el límite de transporte de undertow en ninguna dirección, por lo que un consumidor HTTP de undertow mapeó las cabeceras de cable entrantes de esa forma en el Exchange, donde un productor WebSocket de undertow las lee como directivas de despacho y puede ser hecho para entregarlas a un par diferente al seleccionado por la ruta; y los nombres de cabecera que undertow mismo no acepta fueron mapeados en el Exchange en lugar de ser omitidos. Los consumidores de Rest DSL nunca se vieron afectados, porque UndertowComponent asigna UndertowRestHeaderFilterStrategy explícitamente, que extiende la estrategia de undertow. Esto no es una regresión de CVE-2025-30177: la HttpHeaderFilterStrategy base configura el filtro de prefijo Camel entrante en sí misma, por lo que la protección introducida por ese aviso continuó funcionando a través de la clase base y nunca se perdió. Lo que hizo el cambio fue dejar la estrategia de undertow huérfana en la ruta del endpoint, con el efecto de que dos correcciones posteriores escritas en ella - una omitiendo nombres de cabecera que undertow rechaza, una filtrando el prefijo websocket. heredado en ambas direcciones - fueron aplicadas a una clase que el endpoint ya no usaba y nunca tuvieron efecto en las versiones que las incluyeron. Se recomienda a los usuarios actualizar a la versión 4.22.0, que corrige el problema. Si los usuarios están en la rama de versiones LTS 4.14.x, entonces se les sugiere actualizar a 4.14.9. Si los usuarios están en la rama de versiones 4.18.x, entonces se les sugiere actualizar a 4.18.4. Para implementaciones que no pueden actualizarse inmediatamente, configure la estrategia explícitamente en lugar de depender de la predeterminada, por ejemplo, vinculando una UndertowHeaderFilterStrategy en el registro y referenciándola en el endpoint como undertow:http://0.0.0.0:8080/foo?headerFilterStrategy=#myStrategy, y adicionalmente elimine las cabeceras de despacho en el límite de confianza con removeHeaders('websocket.*'). Tenga en cuenta una limitación residual que la actualización no elimina: el componente undertow mantiene deliberadamente los valores websocket. como parte de su contrato de API visible externamente, y UndertowProducer los lee con in.getHeader, que no consulta ninguna HeaderFilterStrategy en absoluto. El filtrado restaurado es, por lo tanto, una defensa en profundidad solo en el límite de transporte de undertow. Una ruta que transporta un mensaje no confiable desde un consumidor que no es de undertow a un productor de undertow no está protegida por esta corrección y debe eliminar esas cabeceras por sí misma.

Information

Published : 2026-08-24 17:18

Updated : 2026-10-12 15:10


NVD link : CVE-2026-78329

Mitre link : CVE-2026-78329

CVE.ORG link : CVE-2026-78329


JSON object : View

Products Affected

apache

  • camel
CWE
CWE-20

Improper Input Validation