CVE-2026-49042 Details
Description
Improper Input Validation vulnerability in Apache Camel. This issue affects Apache Camel: from 4.8.0 through 4.18.2, from 4.19.0 through 4.20.0. Users are recommended to upgrade to version 4.18.3, 4.21.0, which fixes the issue.
A vulnerability allowing improper input validation has been identified in Apache Camel versions 4.8.0 prior to 4.18.3 and 4.19.0 prior to 4.21.0. This issue arises in the 'camel-langchain4j-tools' and 'camel-langchain4j-agent' components, which improperly handle JSON field names returned by large language models (LLMs) in tool-call responses. The vulnerability allows an attacker to inject arbitrary field names into the tool arguments, including internal Camel control headers. These injected headers can then influence the behavior of downstream producers in the route.
Users are advised to upgrade to Apache Camel version 4.21.0 or, if on the 4.18.x release stream, to upgrade to 4.18.3. After upgrading, only tool argument fields that match declared parameters in the tool specification will be set as Exchange headers. For tools defined without parameter declarations, no argument headers will be passed through from LLM tool calls, which is a breaking change for routes that rely on implicit argument passthrough. To restore argument flow, declare the expected parameters explicitly via the parameter.NAME=TYPE endpoint option. For deployments that cannot upgrade immediately, untrusted headers can be stripped after the tool invocation and explicit parameter schemas can be declared for every tool to constrain the LLM-returned arguments.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/07/06/17 | CVE | Third Party Advisory |
| https://camel.apache.org/security/CVE-2026-49042.html | [email protected] | Vendor AdvisoryPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache camel | >= 4.8.0, < 4.18.3 >= 4.19.0, < 4.21.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jul 6, 2026 | CVE Modified | CVE |
| Jul 6, 2026 | CVE Modified | CISA-ADP |
| Jul 6, 2026 | New CVE Received | [email protected] |