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 package | Versions | Reported by |
|---|---|---|
| org.apache.camel:camel-jms | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | CVE List |
| org.apache.camel:camel-coap | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | CVE List |
| org.apache.camel:camel-google-pubsub | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | CVE List |
| camel | Not specified Not affected: from google-pubsub before *, from http-base before *, from http-common before *, from http-starter before * | CVE List |
| camel-jms | Not specified | CVE List |
| camel-http | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-log-sink-rhel9 | Not specified | CVE List |
| openshift-serverless-1/kn-eventing-integrations-timer-source-rhel9 | Not specified | CVE List |
| camel-google-pubsub | Not specified | CVE List |
| camel-http-base | Not specified | CVE List |
| camel-http-common | Not specified | CVE List |
| camel-http4 | Not specified | CVE List |
| camel-http4-starter | Not specified | CVE List |
| camel-http-common-starter | Not specified | CVE List |
| camel-http-starter | Not specified | CVE List |
| org.apache.camel:camel-coap (Maven) | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | GitHub Advisory Database |
| org.apache.camel:camel-google-pubsub (Maven) | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | GitHub Advisory Database |
| org.apache.camel:camel-jms (Maven) | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | GitHub Advisory Database |
| org.apache.camel:camel-sjms (Maven) | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | GitHub Advisory Database |
| apache camel | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, 4.19.0 | NVD |
All scores
| CISA-ADP | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| redhat-SADP | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40453 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jg2m-9x48-3gvj changed 2026-10-05 | CC-BY-4.0 |
| NVD | CVE-2026-40453 changed 2026-10-26 | Public domain |