CVE-2026-130612
Apache Camel: Camel-Core: message-supplied option values of a dynamic endpoint (toD, enrich, pollEnrich) are resolved as property placeholders and #class: references
Description
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') and Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerability in Apache Camel Core component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
In Apache Camel, the option values of a dynamically-computed endpoint URI - such as the URI built from message content by the toD, enrich and pollEnrich EIPs (and recipientList, routingSlip, dynamicRouter, wireTap) - are processed by the generic endpoint option binding, which resolves Camel property placeholders ({{...}}) and bean/class references (#class:, #bean:, #type:). As a result an untrusted message sender can cause configuration values and secrets (environment variables, system properties, vault/secret functions, registry bean state) to be disclosed into an option value, and attacker-selected classes to be instantiated during endpoint creation. The earlier fix tracked as CAMEL-24282 made only the per-message URI string literal for the toD/enrich path and did not cover the option-binding step.
Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-core-processorpreliminary | >= 4.0.0, < 4.18.6>= 4.19.0, < 4.22.3>= 4.23.0, < 4.24.0 | 4.18.6, 4.22.3, 4.24.0 |
Blast radius
67% of the dependent artifacts (2,036) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 642 |
| 2 hops | 24,174 |
| 3 hops | 46,916 |
| 4 hops | 39,583 |
| 5 hops | 7,776 |
| 6 hops | 1,080 |
Most used dependents
- org.apache.camel » camel-core1,781 usages
- org.apache.camel » camel-jackson648 usages
- org.apache.camel » camel-spring640 usages
- org.apache.camel.kafkaconnector » camel-kafka-connector616 usages
- org.apache.camel.springboot » camel-core-starter564 usages
- org.apache.camel.quarkus » camel-quarkus-core511 usages
- org.apache.camel.springboot » camel-spring-boot-starter487 usages
- org.apache.camel.quarkus » camel-quarkus-core-deployment471 usages
- org.apache.camel.quarkus » camel-quarkus-direct338 usages
- org.apache.camel » camel-maven-plugin305 usages
- org.apache.camel » camel-jms255 usages
- org.apache.camel » camel-yaml-dsl251 usages
- org.apache.camel » camel-http227 usages
- org.apache.camel » camel-kamelet223 usages
- org.apache.camel.quarkus » camel-quarkus-log167 usages
Computed from the dependency graph of build 20261203.1441 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | security/CVE-2026-130612.html | camel.apache.org |
| Advisory | CVE record CVE-2026-130612 | github.com |
| Advisory | NVD CVE-2026-130612 | nvd.nist.gov |
| Fix | apache/camel pull request #30389 | github.com |
| Fix | apache/camel pull request #30396 | github.com |
| Fix | apache/camel pull request #30397 | github.com |
| Fix | apache/camel pull request #30398 | github.com |
| Report | jira/browse/CAMEL-27160 | issues.apache.org |
| Web | maven2 | repo.maven.apache.org |
