CVE-2026-49042: Apache Camel-Langchain4j-Tools Tool Argument Headers Are Not Vulnerability

HIGH
Advisory Identifier: GHSA-hh8r-75r6-qrg9
CVSS 7.3
CWE-20
Published
Advisory Summary

CVE-2026-49042 is a HIGH (CVSS 7.3) tool argument headers are not vulnerability (CWE-20: Improper Input Validation) affecting Apache Camel-Langchain4j-Tools libraries in the Maven ecosystem. The issue involves tool argument headers are not filtered against declared parameters. Remediation is available by upgrading affected packages to version 4.18.3, 4.21.0.

CVE-2026-49042 at a Glance

CVE Identifier CVE-2026-49042
GHSA Identifier GHSA-hh8r-75r6-qrg9
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache Camel-Langchain4j-Tools
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-49042

To remediate this vulnerability, upgrade all affected Apache Camel-Langchain4j-Tools dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.camel:camel-langchain4j-tools fixed: 4.18.3
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-langchain4j-tools</artifactId>
    <version>4.18.3</version>
</dependency>
org.apache.camel:camel-langchain4j-tools fixed: 4.21.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-langchain4j-tools</artifactId>
    <version>4.21.0</version>
</dependency>
org.apache.camel:camel-langchain4j-agent fixed: 4.18.3
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-langchain4j-agent</artifactId>
    <version>4.18.3</version>
</dependency>
org.apache.camel:camel-langchain4j-agent fixed: 4.21.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-langchain4j-agent</artifactId>
    <version>4.21.0</version>
</dependency>
org.apache.camel:camel-spring-ai-tools fixed: 4.18.3
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-ai-tools</artifactId>
    <version>4.18.3</version>
</dependency>
org.apache.camel:camel-spring-ai-tools fixed: 4.21.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-ai-tools</artifactId>
    <version>4.21.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.camel

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-49042, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.camel

Analyze the terminal output to locate any version of Apache Camel-Langchain4j-Tools in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.18.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache Camel-Langchain4j-Tools, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-49042 Affected Apache Camel-Langchain4j-Tools Versions

6 component(s)
Fixed Versions:
4.18.34.21.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-langchain4j-tools
Maven
≥ 4.8.0
< 4.18.3
4.18.3
org.apache.camel:camel-langchain4j-tools
Maven
≥ 4.19.0
< 4.21.0
4.21.0
org.apache.camel:camel-langchain4j-agent
Maven
≥ 4.8.0
< 4.18.3
4.18.3
org.apache.camel:camel-langchain4j-agent
Maven
≥ 4.19.0
< 4.21.0
4.21.0
org.apache.camel:camel-spring-ai-tools
Maven
≥ 4.8.0
< 4.18.3
4.18.3
org.apache.camel:camel-spring-ai-tools
Maven
≥ 4.19.0
< 4.21.0
4.21.0

References

Frequently Asked Questions

What is CVE-2026-49042?
CVE-2026-49042 is a security vulnerability in Apache Camel-Langchain4j-Tools involving Tool argument headers are not filtered against declared parameters under CWE-20: Improper Input Validation.
Which Apache Camel-Langchain4j-Tools versions are affected?
Affected versions include releases prior to 4.18.3, 4.21.0 across affected packages: org.apache.camel:camel-langchain4j-tools, org.apache.camel:camel-langchain4j-agent, org.apache.camel:camel-spring-ai-tools.
What version fixes CVE-2026-49042?
Upgrading to 4.18.3, 4.21.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-langchain4j-tools affected?
Yes, org.apache.camel:camel-langchain4j-tools is affected in releases prior to 4.18.3, 4.21.0. Upgrade your dependency to 4.18.3, 4.21.0 or later.
Is camel-langchain4j-agent affected?
Yes, org.apache.camel:camel-langchain4j-agent is affected in releases prior to 4.18.3, 4.21.0. Upgrade your dependency to 4.18.3, 4.21.0 or later.
What is the CVSS score of CVE-2026-49042?
CVE-2026-49042 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-49042?
CVE-2026-49042 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2026-49042?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hh8r-75r6-qrg9",
  "modified" : "2026-08-28T20:18:04Z",
  "published" : "2026-07-06T12:31:30Z",
  "aliases" : [ "CVE-2026-49042" ],
  "summary" : "Apache Camel-Langchain4j-Tools: Tool argument headers are not filtered against declared parameters",
  "details" : "Improper Input Validation vulnerability in Apache Camel.\n\nThis issue affects Apache Camel: from 4.8.0 through 4.18.2, from 4.19.0 through 4.20.0.\n\nUsers are recommended to upgrade to version 4.18.3, 4.21.0, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-langchain4j-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.8.0"
      }, {
        "fixed" : "4.18.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-langchain4j-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.19.0"
      }, {
        "fixed" : "4.21.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-langchain4j-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.8.0"
      }, {
        "fixed" : "4.18.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-langchain4j-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.19.0"
      }, {
        "fixed" : "4.21.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-spring-ai-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.8.0"
      }, {
        "fixed" : "4.18.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-spring-ai-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.19.0"
      }, {
        "fixed" : "4.21.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49042"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/23535"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/23551"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/5d0028f6bc7a70556dc1d408b1b6cadb59e1842d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/6851a94075b82375381a7236e081292b67f6bf9a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/e9c4541a91ce75ce4817d499e704299c3933edaa"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2026-49042.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/releases/tag/camel-4.18.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/releases/tag/camel-4.21.0"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-23621"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/07/06/17"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-28T20:18:04Z",
    "nvd_published_at" : "2026-07-06T11:16:29Z"
  }
}