camel-http is vulnerable to Improper Neutralization of Special Elements Used in a Template Engine
82
CVE Score
High
Improper Neutralization of Special Elements Used in a Template Engine
Before the fix, createMethod in HttpMethodHelper passed the message-supplied CamelHttpUri header through CamelContext.resolvePropertyPlaceholders() before building the outgoing request, so any source able to set that header on a message entering an HTTP producer route could evaluate OS environment variables, JVM system properties, registered PropertiesFunctions, and no-argument registry-bean methods. Routes using a plain to("http://backend/api") producer were exposed unless the skipControlHeaders endpoint opt-out was set, and it defaults to off. The fix removes the placeholder resolution so the header value is only URI-encoded, never evaluated.
Upgrade the org.apache.camel:camel-http package to a fixed release on your branch: 4.18.5, 4.22.1.
You are affected if you are using a version that falls within the vulnerable range and use an http producer endpoint and route in messages whose sources can set the CamelHttpUri header without setting skipControlHeaders.
4.0.0 - 4.18.4
Fixed in 4.18.54.19.0 - 4.22.0
Fixed in 4.22.1camel-http is vulnerable to Improper Neutralization of Special Elements Used in a Template Engine in versions 4.0.0 - 4.18.4 and 4.19.0 - 4.22.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.