Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2026-49042 EUVD-2026-41864GHSA-hh8r-75r6-qrg9

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

Published Jul 6, 2026 · Updated Jul 6, 2026 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Camel 4.8.0 – ≤ 4.18.2, 4.19.0 – ≤ 4.20.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • oscerd/CVE-2026-49042 ★ 1 · Jul 20, 2026

    PoC reproducer for CVE-2026-49042 (Apache Camel camel-langchain4j-tools): a prompt-injected LLM's tool-call arguments become unfiltered Exchange headers, hijacking the tool route's exec: sink for RCE…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.camel:camel-langchain4j-agent >= 4.8.0, < 4.18.3 4.18.3 GHSA-hh8r-75r6-qrg9
Maven org.apache.camel:camel-langchain4j-agent >= 4.19.0, < 4.21.0 4.21.0 GHSA-hh8r-75r6-qrg9
Maven org.apache.camel:camel-langchain4j-tools >= 4.8.0, < 4.18.3 4.18.3 GHSA-hh8r-75r6-qrg9
Maven org.apache.camel:camel-langchain4j-tools >= 4.19.0, < 4.21.0 4.21.0 GHSA-hh8r-75r6-qrg9
Maven org.apache.camel:camel-spring-ai-tools >= 4.8.0, < 4.18.3 4.18.3 GHSA-hh8r-75r6-qrg9
Maven org.apache.camel:camel-spring-ai-tools >= 4.19.0, < 4.21.0 4.21.0 GHSA-hh8r-75r6-qrg9

Advisories 1

References