Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
CVE-2026-49042 — 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. Fixed in 4.14.8/4.18.3/4.21.0. | Kitploit
Ferramentas/GitHubGitHub/oscerd/cve-2026-49042
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload DevelopmentAI Security
GitHuboscerd/cve-2026-49042

CVE-2026-49042

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. Fixed in 4.14.8/4.18.3/4.21.0.

11há 28 diasAinda não revisado

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Ver Repositório
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

CVE-2026-49042 — camel-langchain4j-tools Prompt-Injection → Header-Injection

Runnable proof-of-concept reproducers for the same Apache Camel vulnerability, one per runtime:

RuntimeDirectoryStackHijacked sinkDemonstrated impact
Camel Spring Bootcamel-spring-boot/Spring Boot 3.2.0 + camel-spring-boot 4.18.2exec: via CamelExecCommand*remote code execution
Camel Quarkuscamel-quarkus/Quarkus 3.36.0 + Camel Quarkus 3.36.0 (bundles Camel 4.20.0)http via CamelHttpUriSSRF + secret disclosure

Both are affected versions (fixed in 4.14.8 / 4.18.3 / 4.21.0), and both demonstrate the identical defect: LangChain4jToolsProducer#invokeTools copies every field of the model's tool-call arguments JSON straight into Exchange headers, with no check against the declared parameter schema. The tool declares one parameter (host), but a prompt-injected model emits additional fields that land as Camel control headers and hijack whatever producer the tool route uses downstream (CWE-20).

No real LLM or API key is needed: the injection lives entirely in the tool-call arguments a mock model emits, exactly as a jailbroken or indirectly-prompt-injected model would produce.

Why the two variants hijack different sinks

The Spring Boot variant proves RCE through an exec: sink. That sink is not reachable by default on Camel 4.20.0 (what Camel Quarkus 3.36.0 bundles): CAMEL-23315 added an allowControlHeaders option to camel-exec, defaulting to false, first shipped in 4.20.0. That hardening is independent of this CVE and does not fix it — the injected fields still become Exchange headers at 4.20.0 (verified in the route log); only that one downstream sink stopped honouring its control headers. The Quarkus variant therefore hijacks the http producer, which is honoured by default, and additionally smuggles a Camel property placeholder that the producer resolves — yielding SSRF plus disclosure of a real application secret.

Each subdirectory is a self-contained project with its own Dockerfile, docker-compose.yml, and README. In short, for either:

root@kitploit:~
cd camel-spring-boot   # or: cd camel-quarkus
mvn clean package
docker compose up -d --build
curl -s http://localhost:8080/exploit/attack
docker compose down

Vulnerability Summary

Advisory: https://camel.apache.org/security/CVE-2026-49042.html

Disclaimer

These reproducers are provided for security research and authorized testing only, for a publicly disclosed and fixed vulnerability. Do not use them against systems without explicit permission.

Baixar ferramenta
PropertyValue
Componentcamel-langchain4j-tools (also camel-langchain4j-agent, camel-spring-ai-tools)
Affected Classorg.apache.camel.component.langchain4j.tools.LangChain4jToolsProducer#invokeTools
CWECWE-20 (Improper Input Validation) — unfiltered tool-call arguments become Exchange control headers
ImpactRCE / SSRF / arbitrary file write, depending on the tool route's downstream producer
Affected Versions4.8.0–4.14.7, 4.15.0–4.18.2, 4.19.0–4.20.x
Fixed Versions4.14.8, 4.18.3, 4.21.0
JIRACAMEL-23621 (PR apache/camel#23535)
CreditYu Bao (PayPal)