Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach unauthenticated NATS subject
-
DeliveryPublish message with forged Camel* header
-
ExploitConsumer copies header into Exchange
-
ExecutionHeader propagates across route hops
-
PersistDownstream producer honors injected control header
-
ImpactHTTP/file/SQL action redirected or overridden
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires the target to run the camel-nats component consuming from a NATS 2.2-or-later server (message-header support), and the attacker must be able to publish to the specific consumed NATS subject - reachable without credentials only when the NATS server is configured without authentication (the NATS default). Concrete impact further requires the Camel route to contain a downstream producer whose behaviour is header-driven (e.g. HTTP, file, or SQL producers reading CamelHttpUri, CamelFileName, or CamelSqlQuery). Limiting factors: NATS authentication being enabled removes unauthenticated access; a route with no header-sensitive downstream producer yields little to no real impact; and pre-2.2 NATS servers lack the message-header feature the attack abuses. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N, base 7.5) reflects a pure integrity impact: no confidentiality or availability loss, but high integrity impact via header override, reachable over the network with low complexity and no authentication. That PR:N is only realistic in the common default deployment where the NATS server has authentication disabled and the attacker can publish to the consumed subject; with NATS auth enabled the practical privilege requirement rises. EPSS is low (0.19%, 9th percentile) and CISA SSVC records Exploitation: none, Technical Impact: partial, Automatable: yes - consistent with a real but not-yet-exploited weakness whose concrete impact is conditional on the route's downstream producers. The signals are coherent rather than conflicting: the high nominal CVSS is tempered by the fact that damage depends entirely on which producers exist after the NATS consumer (a route with no HTTP/file/SQL producer downstream may be practically unaffected). Treat this as a targeted, deployment-dependent integrity risk rather than a wormable critical. |
| Exploit ScenarioDerived | An attacker who can reach an unauthenticated NATS server publishes a message to a subject consumed by a Camel route, attaching a header such as CamelHttpUri=http://attacker/collect (or CamelFileName / CamelSqlQuery). Camel copies the header onto the Exchange, and when the message reaches a downstream HTTP, file, or SQL producer the injected value redirects the request, rewrites the output file path, or overrides the query. No exploit code is currently public, but the low attack complexity and network vector make a hand-crafted publish trivial once a vulnerable route is identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jul 06, 2026
Header injection in the Apache Camel camel-nats component (4.0.0-4.14.7, 4.15.0-4.18.2, 4.19.0-4.20.x) allows any NATS client that can publish to a consumed subject to inject arbitrary Camel-internal control headers into the Exchange because the consumer's default DefaultHeaderFilterStrategy has no inbound filter rules. An attacker can override headers such as CamelHttpUri, CamelFileName, or CamelSqlQuery to redirect HTTP producers, rename files, or alter queries in downstream route steps. No public exploit identified at time of analysis; EPSS is low (0.19%, 9th percentile) and CISA SSVC lists exploitation as none, but the flaw is remotely reachable without credentials when the NATS server runs with its default (no-auth) configuration.
Earlier versions of this analysis (4)
Camel control-header injection in the Apache Camel camel-nats component allows a client that can publish to a consumed NATS subject to inject arbitrary Camel* control headers into the Exchange, hijacking the behaviour of downstream producers in the route (redirecting an HTTP producer, renaming a file, or overriding a SQL query). It affects Apache Camel 4.0.0 before 4.14.8, 4.15.0 before 4.18.3, and 4.19.0 before 4.21.0, and is reachable without credentials when the NATS server runs without authentication (the NATS default). No public exploit identified at time of analysis; EPSS is low (0.19%, 9th percentile) and it is not in CISA KEV.
Header injection in the Apache Camel camel-nats component (versions 4.0.0-4.14.7, 4.15.0-4.18.2, and 4.19.0-4.20.x) lets any client that can publish to a consumed NATS subject inject arbitrary Camel-internal control headers (e.g. CamelHttpUri, CamelFileName, CamelSqlQuery) into the Exchange, hijacking the behaviour of downstream producers in the route. The flaw stems from camel-nats defaulting to an unconfigured DefaultHeaderFilterStrategy that filters nothing on inbound mapping, and is reachable without credentials against the default (no-auth) NATS server configuration. No public exploit identified at time of analysis; EPSS is low (0.19%) and it is not on CISA KEV, but SSVC rates it automatable with partial technical impact.
Header injection in the Apache Camel camel-nats component (4.0.0 before 4.14.8, 4.15.0 before 4.18.3, and 4.19.0 before 4.21.0) lets any client that can publish to a consumed NATS subject inject arbitrary Camel-internal control headers into the Exchange, tampering with downstream producer behaviour such as HTTP target, file name, or SQL query. The flaw stems from an unconfigured DefaultHeaderFilterStrategy that copies every inbound NATS header verbatim, and is reachable unauthenticated against a default (auth-disabled) NATS 2.2+ server. There is no public exploit identified at time of analysis and EPSS is low (0.19%, 9th percentile), but SSVC rates it automatable with partial technical impact.
Header injection in Apache Camel's NATS consumer component (camel-nats) allows any publisher to a consumed NATS subject to inject arbitrary Camel internal control headers - including CamelHttpUri, CamelFileName, and CamelSqlQuery - into the Camel Exchange, redirecting or manipulating downstream producers across the entire route. Affected across three release streams (4.0.0-4.14.7, 4.15.0-4.18.2, 4.19.0-4.20.x), with the highest risk against default NATS deployments that ship without authentication. No public exploit has been identified at time of analysis, though the attack mechanic is straightforward and requires no credentials in default NATS configurations.
RemediationAI
Vendor-released patch: upgrade to Apache Camel 4.21.0 on the main stream; 4.14.x LTS users should move to 4.14.8, and 4.18.x users to 4.18.3, per https://camel.apache.org/security/CVE-2026-46457.html. The fix makes camel-nats default to a dedicated NatsHeaderFilterStrategy that filters the Camel* / camel* namespace case-insensitively on inbound mapping so client-supplied control headers are no longer copied into the Exchange. If you cannot upgrade immediately, strip Camel control headers at the very start of any NATS-consuming route with removeHeaders('Camel*') and removeHeaders('camel*') before any downstream producer runs (note this also drops any legitimately intended Camel* headers arriving on that source, so verify no route logic depends on them), and enable authentication on the NATS server so only trusted clients can publish to the consumed subject, which raises the effective privilege bar at the cost of provisioning credentials for publishers.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Camel is a widely used Java integration framework built around Enterprise Integration Patterns, where messages traverse a 'route' of components and their headers steer producer behaviour. The camel-nats component bridges NATS (a high-throughput pub/sub messaging system whose message-header support requires NATS 2.2+) into Camel. NatsConfiguration initialized headerFilterStrategy to a bare new DefaultHeaderFilterStrategy() without setting inFilter, inFilterPattern, or inFilterStartsWith, so applyFilterToExternalHeaders returns 'not filtered' for every inbound header. NatsConsumer therefore copies all NATS message headers verbatim onto the Camel message, including the reserved Camel* control-header namespace that other components read to make routing/IO decisions. This is a textbook CWE-20 Improper Input Validation issue: externally controlled data (NATS headers) is trusted as internal control metadata. Because Camel propagates headers across in-memory direct, seda, and vm hops, the injected headers persist deep into the route. The single affected CPE is cpe:2.3:a:apache_software_foundation:apache_camel.
Know when Apache Camel gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Network-reachable with no auth against the default unauthenticated NATS server (AV:N/PR:N/AC:L); impact is header override affecting integrity only (I:H, C:N/A:N).
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
6DescriptionCVE.org
Improper Input Validation vulnerability in Apache Camel NATS component.
The camel-nats component maps inbound NATS message headers into the Camel Exchange but defaulted its headerFilterStrategy to a bare new DefaultHeaderFilterStrategy() with no inbound rules configured (NatsConfiguration). With no inFilter, inFilterPattern or inFilterStartsWith set, DefaultHeaderFilterStrategy.applyFilterToExternalHeaders returns not filtered for every header name, so NatsConsumer copies every NATS message header - including Camel-internal control headers such as CamelHttpUri, CamelFileName or CamelSqlQuery - unmodified onto the Camel message. A client able to publish to the consumed NATS subject can therefore inject arbitrary Camel control headers that influence the behaviour of downstream producers in the route (for example redirecting an HTTP producer, changing a file name, or overriding a query); the injected headers also persist across internal direct, seda and vm hops. The concrete downstream impact depends on which producers the route uses. NATS message headers require NATS 2.2 or later, and the issue is reachable without credentials when the NATS server is configured without authentication (the NATS server default). This issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0.
Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. The fix makes camel-nats default to a dedicated NatsHeaderFilterStrategy that filters the Camel header namespace case-insensitively on inbound mapping, so client-supplied Camel* / camel* headers are no longer copied into the Exchange. For deployments that cannot upgrade immediately, strip the Camel control headers from inbound NATS messages before they reach any downstream producer (for example removeHeaders('Camel*') and removeHeaders('camel*') at the start of the route), and enable authentication on the NATS server so that only trusted clients can publish to the consumed subject.
Executive ViewAI
Apache Camel's NATS component (versions 4.0.0-4.20.x) allows unauthenticated remote attackers to inject malicious headers into message exchanges, enabling manipulation of downstream operations-including HTTP request redirection, file renaming, and SQL query modification. Exploitation requires the targeted NATS broker to use default (no-auth) configuration. No public exploit identified at time of analysis; however, any organization running this component with NATS messaging faces risk of supply-chain attacks through message tampering.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Apache Camel
View allRemote code execution in Apache Camel's camel-coap component (versions 4.14.0-4.14.5, 4.18.0 before 4.18.1, and 4.19.0)
Unsafe Java deserialization in Apache Camel's camel-infinispan component allows arbitrary code execution when the ProtoS
Unauthenticated remote code execution affects the camel-hazelcast component of Apache Camel 4.0.0 through 4.18.4 and 4.1
Header-injection in the Apache Camel camel-atmosphere-websocket producer lets an external sender hijack WebSocket messag
Header-filter bypass in the Apache Camel Undertow component (4.11.0-4.14.8, 4.15.0-4.18.3, and 4.19.0-4.21.x) lets remot
Remote code execution in Apache Camel 3.18.0-4.14.5 and 4.15.0-4.18.1 stems from CXF and Knative HeaderFilterStrategy im
Message header injection in Apache Camel's camel-mail component (3.0.0 before 4.14.6 and 4.15.0 before 4.18.1) lets an a
Path traversal in Apache Camel's remote-file consumers (including the azure-files component) lets a directory-listing en
Apache Camel's ftp, ftps and sftp remote-file consumers build each file's remote path by concatenating the polled direct
Unauthenticated deserialization of attacker-controlled messages in Apache Camel's camel-jgroups consumer can lead to rem
Remote code execution via unsafe Java deserialization affects the camel-pqc component of Apache Camel 4.18.0-4.18.2 and
Unsafe Java deserialization in Apache Camel's camel-consul component (ConsulRegistry / ConsulRegistryUtils.deserialize)
EUVD-2026-41831
GHSA-7v55-q9x3-83cj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB