CVE-2025-27636: Apache Camel: Camel Message Header Injection via Improper Filtering
CVE-2025-27636 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L· base score 5.6, scored by CISA-ADPAttack vector: network. Attack complexity: high. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: low. Integrity impact: low. Availability impact: low.- Weakness
- Bypass/Injection
- EPSS
- 4.71% chance of exploitation in the next 30 days (92nd percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: proof of concept exists. Automatable: no. Technical impact: partial. CISA, .
- Vendor advisories
- 4 from Apache
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2025-27636; each belongs to its advisory, not to every product listed. How records are collected and checked.
Description
Bypass/Injection vulnerability in Apache Camel components under particular conditions. This issue affects Apache Camel: from 4.10.0 through <= 4.10.1, from 4.8.0 through <= 4.8.4, from 3.10.0 through <= 3.22.3. Users are recommended to upgrade to version 4.10.2 for 4.10.x LTS, 4.8.5 for 4.8.x LTS and 3.22.4 for 3.x releases. This vulnerability is present in Camel's default incoming header filter, that allows an attacker to include Camel specific headers that for some Camel components can alter the behaviours such as the camel-bean component, to call another method on the bean, than was coded in the application. In the camel-jms component, then a malicious header can be used to send the message to another queue (on the same broker) than was coded in the application. This could also be seen by using the camel-exec component The attacker would need to inject custom headers, such as HTTP protocols. So if you have Camel applications that are directly connected to the internet via HTTP, then an attacker could include malicious HTTP headers in the HTTP requests that are send to the Camel application. All the known Camel HTTP component such as camel-servlet, camel-jetty, camel-undertow, camel-platform-http, and camel-netty-http would be vulnerable out of the box. In these conditions an attacker could be able to forge a Camel header name and make the bean component invoking other methods in the same bean. In terms of usage of the default header filter strategy the list of components using that is: * camel-activemq * camel-activemq6 * camel-amqp * camel-aws2-sqs * camel-azure-servicebus * camel-cxf-rest * camel-cxf-soap * camel-http * camel-jetty * camel-jms * camel-kafka * camel-knative * camel-mail * camel-nats * camel-netty-http * camel-platform-http * camel-rest * camel-sjms * camel-spring-rabbitmq * camel-stomp * camel-tahu * camel-undertow * camel-xmpp The vulnerability arises due to a bug in the default filtering mechanism that only blocks headers starting with "Camel", "camel", or "org.apache.camel.". Mitigation: You can easily work around this in your Camel applications by removing the headers in your Camel routes. There are many ways of doing this, also globally or per route. This means you could use the removeHeaders EIP, to filter out anything like "cAmel, cAMEL" etc, or in general everything not starting with "Camel", "camel" or "org.apache.camel.".
Text from the CVE.org record (apache).
Vendor advisories for CVE-2025-27636
Apache
4 advisories- Advisory severityCritical9.9
Critical [CVE-2025-27636 +4] Apache Camel: Camel-CXF Message Header Injection via Missing Inbound Filtering
CVE-2026-47323Source published Source updated
This bulletin covers 5 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Camel-CXF and Camel-Knative Message Header Injection via Missing Inbound Filtering The CXF and Knative HeaderFilterStrategy implementations (CxfRsHeaderFilterStrategy in camel-cxf-rest, CxfHeaderFilterStrategy in camel-cxf-transport, and KnativeHttpHeaderFilterStrategy in camel-knative-http) only filter outbound Camel-internal headers via setOutFilterStartsWith, while not configuring inbound filtering via setInFilterStartsWith. As a result, an unauthenticated attacker can inject Camel-internal headers (e.g. CamelExecCommandExecutable, CamelFileName) via HTTP requests to CXF-RS or CXF-SOAP endpoints. When a route forwards messages from these endpoints to header-driven components such as camel-exec or camel-file, the injected headers override configured values, enabling remote code…
- Affected products in this advisory
- Apache Camel
- Source-reported affected versions
- Apache Camel 3.18.0 before 4.14.6
- Apache Camel 4.15.0 before 4.18.2
- Source-reported fixed versions
- 4.14.6
- 4.18.2
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
- Advisory severityCritical9.4
Critical [CVE-2025-27636 +3] Apache Camel: Inbound Header Filter Missing in MailHeaderFilterStrategy Allows Remote Code Execution via MIME Header Injection (CVE-2025-30177 Variant)
CVE-2026-33454Source published Source updated
This bulletin covers 4 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
The Camel-Mail component is vulnerable to Camel message header injection. The custom header filter strategy used by the component (MailHeaderFilterStrategy) only filters the 'out' direction via setOutFilterStartsWith, while it does not configure the 'in' direction via setInFilterStartsWith. As a result, when a Camel application consumes mail through camel-mail (for example via from(\"imap://...\") or from(\"pop3://...\")) the inbound filter check is skipped and Camel-prefixed MIME headers are mapped unfiltered into the Exchange. An attacker who can deliver an email to a mailbox monitored by such a consumer can inject Camel-specific headers that, for some Camel components downstream of the mail consumer (such as camel-bean, camel-exec, or camel-sql), can alter the behaviour of the route.…
- Affected products in this advisory
- Apache Camel
- Source-reported affected versions
- Apache Camel 3.0.0 before 4.14.6
- Apache Camel 4.15.0 before 4.18.1
- Source-reported fixed versions
- 4.14.6
- 4.18.1
- Mitigation guidance
- The custom header filter strategy used by the component (MailHeaderFilterStrategy) only filters the 'out' direction via setOutFilterStartsWith, while it does not configure the 'in' direction via setInFilterStartsWith.
- Users are recommended to upgrade to version 4.19.0, which fixes the issue.
- If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.1.
- If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6.
- Advisory severityCritical9.9
Critical [CVE-2025-27636 +1] Apache Camel: The fix for CVE-2025-27636 added setLowerCase(true) to HttpHeaderFilterStrategy so that case-variant header names such as…
CVE-2026-40453Source published Source updated
This bulletin covers 2 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
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…
- Affected products in this advisory
- Apache Camel
- Source-reported affected versions
- 3.0.0 through 4.14.6
- 4.15.0 through 4.18.2
- 4.19.0 through 4.20.0.
- Source-reported fixed versions
- 4.20.0
- 4.14.6
- 4.18.2
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
- Advisory severityMedium5.3
Medium [CVE-2025-27636 +5] Improper Input Validation, Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in Apache Camel Knative component The Knative consumer in camel-knative maps inbound CloudEvent attributes onto Camel message headers
CVE-2026-63621Source published Source updated
This bulletin covers 6 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Improper Input Validation, Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in Apache Camel Knative component The Knative consumer in camel-knative maps inbound CloudEvent attributes onto Camel message headers. In binary content mode the HTTP-header path filters Camel-internal headers through KnativeHttpHeaderFilterStrategy, but in structured content mode (Content-Type application/cloudevents+json) the CloudEvent extension fields are read directly from the JSON body and every extension key is copied into the Exchange headers without applying any HeaderFilterStrategy (CloudEventProcessors, spec versions 1.0, 1.0.1 and 1.0.2). As a result, an unauthenticated attacker can inject Camel-internal headers (e.g. CamelHttpUri…
- Affected products in this advisory
- Apache Camel Knative
- Source-reported affected versions
- 3.15.0 before 4.14.9
- 4.15.0 before 4.18.4
- 4.19.0 before 4.21.0
- through 4.17.0
1 more entries in the full advisory.
- Source-reported fixed versions
- 4.14.9
- 4.18.4
- 4.21.0
- 4.22.0
- Mitigation guidance
- Users are recommended to upgrade to version 4.22.0, which fixes the issue.
- If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.4.
- If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.9.
- The non-LTS releases 4.15.0 through 4.17.0 and 4.19.0 through 4.21.0 are affected but do not receive a maintenance fix; users on those versions should upgrade to 4.18.4 or 4.22.0.
References
- CVE-2025-27636 recordCVE.org
- CVE-2025-27636 detailNVD
- lists.apache.org/thread/l3zcg3vts88bmc7w8172wkgw610y693zvendor-advisory
- issues.apache.org/jira/browse/CAMEL-21828issue-tracking
- camel.apache.org/security/CVE-2025-27636.htmlvendor-advisory
Timeline
- CVE record published
- CVE record last updated
- First vendor advisory listed by VulniPulse
More Apache advisories
CVE-2026-88901Oct 19, 2026Apache Camel XXECVE-2026-83531Oct 19, 2026Apache Camel: Camel-Dynamic-Router Control Endpoint Compiles Predicate ExpressionsCVE-2026-78162Oct 19, 2026Apache Camel: Camel-Hazelcast Managed Instances Missing Java Deserialization FilterCVE-2026-80354Sep 10, 2026Authorization bypass through User-Controlled key vulnerability in Apache Camel KCVE-2026-80351Sep 10, 2026Improper neutralization of directives in dynamically evaluated code ('eval injection')CVE-2026-80352Sep 10, 2026Apache Camel remote code execution
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).