CVE-2026-40453
JSON

9.9critical

Apache Camel JMS, Apache Camel CoAP, Apache Camel Google PubSub: Incomplete fix for CVE-2025-27636 in non-HTTP HeaderFilterStrategies (camel-jms, camel-sjms, camel-coap, camel-google-pubsub) allows case-variant header injection

Severity
9.9critical CVSS:3.1 by CISA-ADP
Exploit likelihood
2.14% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-jg2m-9x48-3gvj

Description

The fix for CVE-2025-27636 added setLowerCase(true) to HttpHeaderFilterStrategy so that case-variant header names such as 'CAmelExecCommandExecutable' are filtered out alongside 'CamelExecCommandExecutable'. The same setLowerCase(true) call was not applied to five non-HTTP HeaderFilterStrategy implementations: JmsHeaderFilterStrategy and ClassicJmsHeaderFilterStrategy in camel-jms, SjmsHeaderFilterStrategy in camel-sjms, CoAPHeaderFilterStrategy in camel-coap, and GooglePubsubHeaderFilterStrategy in camel-google-pubsub. Because those strategies use case-sensitive String.startsWith('Camel'/'camel') filtering while the Camel Exchange stores headers in a case-insensitive map, an attacker with JMS (or equivalent) producer access to the broker consumed by a Camel route can inject case-variant Camel internal headers, which are then resolved by downstream components such as camel-exec and camel-file using their canonical casing. This enables remote code execution and arbitrary file write on routes that forward JMS messages to header-driven components. This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0. Users are recommended to upgrade to version 4.20.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.6. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.2.

Affected

Product or packageVersionsReported by
org.apache.camel:camel-jmsfrom 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0CVE List
org.apache.camel:camel-coapfrom 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0CVE List
org.apache.camel:camel-google-pubsubfrom 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0CVE List
camelNot specified
Not affected: from google-pubsub before *, from http-base before *, from http-common before *, from http-starter before *
CVE List
camel-jmsNot specifiedCVE List
camel-httpNot specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9Not specifiedCVE List

All scores

CISA-ADP9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
redhat-SADP9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-178

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

The fix for CVE-2025-27636 added setLowerCase(true) to HttpHeaderFilterStrategy so that case-variant header names such as 'CAmelExecCommandExecutable' are filtered out alongside 'CamelExecCommandExecutable'. The same setLowerCase(true) call was not applied to five non-HTTP HeaderFilterStrategy implementations: JmsHeaderFilterStrategy and ClassicJmsHeaderFilterStrategy in camel-jms, SjmsHeaderFilterStrategy in camel-sjms, CoAPHeaderFilterStrategy in camel-coap, and GooglePubsubHeaderFilterStrategy in camel-google-pubsub. Because those strategies use case-sensitive String.startsWith('Camel'/'camel') filtering while the Camel Exchange stores headers in a case-insensitive map, an attacker with JMS (or equivalent) producer access to the broker consumed by a Camel route can inject case-variant Camel internal headers, which are then resolved by downstream components such as camel-exec and camel-file using their canonical casing. This enables remote code execution and arbitrary file write on routes that forward JMS messages to header-driven components. This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0. Users are recommended to upgrade to version 4.20.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.6. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.2.

NVD (es)

La corrección para CVE-2025-27636 añadió setLowerCase(true) a HttpHeaderFilterStrategy para que los nombres de encabezado con variantes de mayúsculas y minúsculas, como ’CAmelExecCommandExecutable’, se filtren junto con ’CamelExecCommandExecutable’. La misma llamada a setLowerCase(true) no se aplicó a cinco implementaciones de HeaderFilterStrategy que no son HTTP: JmsHeaderFilterStrategy y ClassicJmsHeaderFilterStrategy en camel-jms, SjmsHeaderFilterStrategy en camel-sjms, CoAPHeaderFilterStrategy en camel-coap, y GooglePubsubHeaderFilterStrategy en camel-google-pubsub. Debido a que esas estrategias usan filtrado String.startsWith(’Camel’/’camel’) sensible a mayúsculas y minúsculas mientras que el Camel Exchange almacena los encabezados en un mapa que no distingue entre mayúsculas y minúsculas, un atacante con acceso de productor JMS (o equivalente) al broker consumido por una ruta Camel puede inyectar encabezados internos de Camel con variantes de mayúsculas y minúsculas, los cuales son luego resueltos por componentes posteriores como camel-exec y camel-file usando su formato canónico de mayúsculas y minúsculas. Esto permite la ejecución remota de código y la escritura arbitraria de archivos en rutas que reenvían mensajes JMS a componentes impulsados por encabezados. Este problema afecta a Apache Camel: desde 3.0.0 antes de 4.14.6, desde 4.15.0 antes de 4.18.2, desde 4.19.0 antes de 4.20.0. Se recomienda a los usuarios actualizar a la versión 4.20.0, la cual corrige el problema. Si los usuarios están en la rama de lanzamientos LTS 4.14.x, se les sugiere actualizar a 4.14.6. Si los usuarios están en la rama de lanzamientos 4.18.x, se les sugiere actualizar a 4.18.2.

References

https://camel.apache.org/security/CVE-2026-40453.htmlvendor-advisory, web
https://access.redhat.com/security/cve/CVE-2026-40453vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2463173issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40453.json
https://access.redhat.com/errata/RHSA-2026:19835vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:17668vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-40453advisory
https://github.com/apache/camel/pull/22569web
https://github.com/apache/camel/pull/22575web
https://github.com/apache/camel/pull/22576web
https://github.com/apache/camel/commit/1e331daa4eea0a3f01d951e74cda8faee79495a2web
https://github.com/apache/camel/commit/301bb7401cd480895b94a28a8ad6cf04952d8125web

Sources

SourceRecordLicence
CVE ListCVE-2026-40453 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-jg2m-9x48-3gvj changed 2026-10-05CC-BY-4.0
NVDCVE-2026-40453 changed 2026-10-26Public domain