CVE-2026-49042

Apache Camel: langchain4j-tools: filter tool argument headers against declared parameters

Published Jul 6, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Apache Camel’s langchain4j‑tools component contains an improper input validation flaw that allows an attacker to inject arbitrary HTTP header arguments that bypass the component’s declared parameter filtering. Because headers control message routing and data visibility within downstream Camel components, an attacker who can supply crafted headers can alter routing logic or expose hidden data, resulting in unauthorized control of message flow or data leakage.

Affected Systems

Vulnerable releases are all Apache Camel versions from 4.8.0 through 4.18.2 and from 4.19.0 through 4.20.0. The issue resides in the langchain4j‑tools component, and any application that uses those Camel releases and employs the component is susceptible until a patched release such as 4.18.3 or21.0 is deployed.

Risk and Exploitability

The CVSS score of 7.3 classifies the vulnerability as high severity, yet the EPSS score of less than 1% and the absence from the CISA KEV catalog suggest that it is currently unlikely to be exploited in the wild. The most probable attack scenario involves an attacker who can influence inbound requests or message payloads to add malicious headers; such an attacker could then redirect or manipulate the Camel route, potentially providing unauthorized data access or controlling message flow. Organizations should regard the vulnerability as high risk until the vendor’s patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Camel to version 4.18.3, 4.21.0, or any later release that contains the langchain4j‑tools patch.
  • If a patch cannot be applied immediately, implement strict header validation or a whitelist in the application code before headers reach Camel, or configure the langchain4j‑tools component to reject headers that are not declared as valid parameters.
  • Deploy network or application monitoring that alerts when unexpected or malformed headers appear in traffic destined for the Camel routes, and log these events for forensic review.

Generated by OpenCVE AI on August 1, 2026 at 18:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hh8r-75r6-qrg9 Apache Camel-Langchain4j-Tools: Tool argument headers are not filtered against declared parameters
History
Type Values Removed Values Added
First Time appeared Apache
Apache camel
Vendors & Products Apache
Apache camel
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Apache Camel: langchain4j-tools: filter tool argument headers against declared parameters
Weaknesses CWE-20
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jul 6, 2026, 9:31 PM
Reserved
May 27, 2026, 7:43 AM
Status
Analyzed
Published
Jul 6, 2026, 11:16 AM
Modified
Oct 25, 2026, 3:10 PM