WaratekVRT Sign in

CVE-2026-46457 Apache Camel

Affected softwareApache Camel
Severity7.5 High CVSS 3.1
Fixed in4.14.8, 4.18.3, 4.21.0
WeaknessImproper input validation (CWE-20)
Published6 Jul 2026
Updated25 Oct 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. The 1 repository below are public GitHub repositories with fewer than 5 stars.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 1 indexed, none at 5+ stars
  • EPSS 0.66% chance in 30 days

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Reproducer for CVE-2026-46457 — Apache Camel camel-nats inbound header injection (Camel control-header injection via a NATS publisher; CamelHttpUri -> SSRF) 2026-07-14

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: apache/camel #23233.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.camel:camel-nats 4.0.0 4.14.8 unbounded
org.apache.camel:camel-nats 4.15.0 4.18.3 unbounded
org.apache.camel:camel-nats 4.19.0 4.21.0 unbounded

Products and versions

2 products, 6 version entries
SourceVendorProductSchemeAffected versions
nvd apache camel generic ≥ 4.0.0 and < 4.14.8 · ≥ 4.15.0 and < 4.18.3 · ≥ 4.19.0 and < 4.21.0
osv org.apache.camel camel-nats generic ≥ 4.0.0 and < 4.14.8 · ≥ 4.15.0 and < 4.18.3 · ≥ 4.19.0 and < 4.21.0

References

URLTags
https://github.com/apache/camel/pull/23233 WEB
https://github.com/apache/camel/pull/23250 WEB
https://github.com/apache/camel/pull/23255 WEB
https://github.com/apache/camel/commit/67f7ea7465a1bf637339975c69a82327890e22f0 WEB
https://github.com/apache/camel/commit/be8aad96fa04f81d2b58884e27ba6755c9ad2718 WEB
https://github.com/apache/camel/commit/f7022926ca9c1c94866bf32596c9869f424a3b2c WEB
https://camel.apache.org/security/CVE-2026-46457.html WEB
https://github.com/apache/camel PACKAGE
https://github.com/apache/camel/releases/tag/camel-4.14.8 WEB
https://github.com/apache/camel/releases/tag/camel-4.18.3 WEB

Timeline

Published2026-07-06By the CVE Program.
NVD record modified2026-10-25NVD's own last-modified date for this record.