CamelApplication · Apache

CVE-2026-46457

HIGH · 7.5 CVSS v3.1 Published 2026-07-06
Fix available
A fix is available. Upgrade to 4.14.8 / 4.18.3 or later.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The camel-nats component's DefaultHeaderFilterStrategy has no inbound filtering rules configured, causing all NATS message headers—including internal Camel control headers like CamelHttpUri, CamelFileName, and CamelSqlQuery—to be copied unmodified into the Camel Exchange. This allows unauthenticated NATS clients to inject arbitrary headers that can redirect HTTP producers, modify filenames, or override SQL queries in downstream processors.

MitigationUpgrade to Apache Camel 4.21.0, 4.14.8, or 4.18.3 to receive the fix that adds a dedicated NatsHeaderFilterStrategy. Alternatively, add removeHeaders('Camel*') and removeHeaders('camel*') at route start and enable NATS server authentication.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
CamelApplication
Affected:>= 4.0.0, < 4.14.8>= 4.15.0, < 4.18.3>= 4.19.0, < 4.21.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check Apache Camel version
    Run 'mvn dependency:tree' or check your project's pom.xml for the Apache Camel version, or run 'camel --version' if using Camel CLI
    Affected if The version falls within >= 4.0.0 and < 4.14.8, OR >= 4.15.0 and < 4.18.3, OR >= 4.19.0 and < 4.21.0
  2. Confirm camel-nats component is in use
    Search your project dependencies for 'camel-nats' or 'org.apache.camel:camel-nats' in pom.xml, or check if NATS consumer routes exist in your codebase
    Affected if The camel-nats component is included in the project classpath
  3. Identify NATS consumer endpoint configuration
    Search route definitions for 'from("nats:' endpoints and examine the consumer configuration
    Affected if A NATS consumer endpoint is configured to receive messages
  4. Inspect header filter strategy configuration
    Check the NATS consumer configuration for any custom HeaderFilterStrategy bean or property setting, or look for removeHeaders('Camel*') patterns in the route
    Affected if No custom NatsHeaderFilterStrategy is configured and no removeHeaders('Camel*') or removeHeaders('camel*') is applied in the consuming route
  5. Verify if internal Camel headers can be injected
    Send a test NATS message with a header like 'CamelHttpUri' or 'CamelFileName' and inspect if the Camel Exchange receives those headers unmodified
    Affected if The NATS message headers including Camel* prefixed headers are copied directly into the Exchange without filtering

You are affected if you use Apache Camel with the camel-nats component in a vulnerable version range AND use the default header filter strategy without removeHeaders('Camel*') protection, allowing unauthenticated NATS clients to inject internal Camel headers into your exchanges.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.14.8 / 4.18.3 / 4.21.0 or later
Fixed in 4.14.84.18.34.21.0
Interim mitigation

Upgrade to Apache Camel 4.21.0, 4.14.8, or 4.18.3 to receive the fix that adds a dedicated NatsHeaderFilterStrategy. Alternatively, add removeHeaders('Camel*') and removeHeaders('camel*') at route start and enable NATS server authentication.

Recommended fix High confidence

4.21.0 (or 4.14.8 for 4.14.x LTS, or 4.18.3 for 4.18.x)

  1. 1. Identify your current Apache Camel version by checking your project dependencies (Maven pom.xml, Gradle build file, or Camel version property).
  2. 2. If you are on the 4.14.x LTS stream, upgrade to version 4.14.8. If you are on the 4.18.x stream, upgrade to version 4.18.3. Otherwise, upgrade to version 4.21.0.
  3. 3. Update your dependency management to use the fixed version (for Maven, update the camel-bom or specific camel-nats version; for Gradle, update the version property).
  4. 4. Rebuild and redeploy your application with the updated Camel version.
  5. 5. Verify that the NATS consumer correctly filters inbound headers by testing that externally injected Camel* or camel* headers no longer affect downstream producer behavior (e.g., HTTP redirects, file naming, SQL queries).
  6. 6. If you cannot upgrade immediately and need a temporary mitigation, add a removeHeaders step at the start of your NATS consumer route: removeHeaders('Camel*') and removeHeaders('camel*').
  7. 7. Additionally, enable authentication on your NATS server to restrict which clients can publish to the consumed subject.

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Camel Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing3.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,750
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-46457 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-46457 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data