# CVE-2026-56140: Apache Camel AWS2 SNS: An inbound Camel-namespace filter was added to Sns2HeaderFilterStrategy to align it with sibling components

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-28)
- **CWE:** CWE-20
- **Aliases:** GHSA-w2v8-8q6c-3rhr
- **Published:** 2026-07-06T08:16:00.599Z
- **Modified:** 2026-08-26T14:56:27.055Z

## Who should check

- Projects that depend on Maven package org.apache.camel:camel-aws2-sns (\>= 4.0.0, \< 4.14.8)
- Anyone running Apache Software Foundation Apache Camel AWS2 SNS \>= 4.0.0, \< 4.14.8; \>= 4.15.0, \< 4.18.3; \>= 4.19.0, \< 4.21.0

## Description

Improper Input Validation vulnerability in Apache Camel AWS SNS component.


The camel-aws2-sns component filters Camel headers through a component-specific HeaderFilterStrategy, Sns2HeaderFilterStrategy. Like the sibling Sqs2HeaderFilterStrategy, it originally configured only an outbound filter (setOutFilterPattern, which blocks Camel\*, breadcrumbId and org.apache.camel.\* headers from being written out) and did not configure an inbound filter rule. For the related camel-aws2-sqs component this inbound gap was exploitable, because the Sqs2Consumer maps inbound SQS message attributes into the Camel Exchange via HeaderFilterStrategy.applyFilterToExternalHeaders, allowing a message sender to inject Camel control headers (tracked as CVE-2026-46456). camel-aws2-sns, by contrast, is producer-only: Sns2Endpoint does not support consumers (createConsumer throws UnsupportedOperationException, 'You cannot receive messages from this endpoint'), so no externally-supplied message attributes are ever mapped inbound into a Camel Exchange through SNS, and the missing inbound filter rule on Sns2HeaderFilterStrategy was therefore not reachable by an attacker. As part of the same fix (CAMEL-23506), an inbound filter rule (setInFilterStartsWith for the Camel namespace) was added to Sns2HeaderFilterStrategy so that its configuration matches the corrected Sqs2HeaderFilterStrategy and the other sibling strategies. This is a defense-in-depth alignment with no known exploit path in camel-aws2-sns.


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.

This is a defense-in-depth hardening change with no known exploit path in camel-aws2-sns, which is producer-only, so no urgent action or workaround is required. Users who want the aligned behaviour can upgrade to version 4.21.0, or to 4.14.8 on the 4.14.x LTS releases stream, or to 4.18.3 on the 4.18.x releases stream, which contain the change. As a general best practice, operators should continue to apply least-privilege IAM permissions on their SNS topics.

## Affected and fixed versions

- Maven `org.apache.camel:camel-aws2-sns`: affected \>= 4.0.0, \< 4.14.8; fixed 4.14.8, 4.18.3, 4.21.0 (osv)
- Apache Software Foundation Apache Camel AWS2 SNS: \>= 4.0.0, \< 4.14.8; \>= 4.15.0, \< 4.18.3; \>= 4.19.0, \< 4.21.0 (cvelist)

## Mitigation

- Upgrade org.apache.camel:camel-aws2-sns to one of 4.14.8, 4.18.3, 4.21.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-56140. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-56140.md
Affected: org.apache.camel:camel-aws2-sns >= 4.0.0, < 4.14.8
Fixed in: 4.14.8, 4.18.3, 4.21.0

Steps:
1. Search this machine and project for org.apache.camel:camel-aws2-sns (Maven), Apache Software Foundation Apache Camel AWS2 SNS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-56140 being exploited?

There is no confirmed exploitation: CVE-2026-56140 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-56140?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-56140?

org.apache.camel:camel-aws2-sns \>= 4.0.0, \< 4.14.8.

### Is there a fix for CVE-2026-56140?

Yes. Fixed in 4.14.8, 4.18.3, 4.21.0. Upgrade org.apache.camel:camel-aws2-sns to one of 4.14.8, 4.18.3, 4.21.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-56140?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://camel.apache.org/security/CVE-2026-56140.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-56140>
- patch: <https://github.com/apache/camel/pull/23221>
- patch: <https://github.com/apache/camel/pull/23357>
- patch: <https://github.com/apache/camel/pull/23373>
- patch: <https://github.com/apache/camel/commit/5f57258fb33d33ef99df10594f8fe9f11d7c2b7e>
- patch: <https://github.com/apache/camel/commit/7b334be0419839097a132d4ff3427fc4083e695e>
- patch: <https://github.com/apache/camel/commit/b7f78292e747a28dbf5da444265557b5f9f3c1a1>
- other: <https://github.com/apache/camel>
- other: <https://github.com/apache/camel/releases/tag/camel-4.14.8>
- other: <https://github.com/apache/camel/releases/tag/camel-4.18.3>
- other: <https://github.com/apache/camel/releases/tag/camel-4.21.0>
- other: <https://issues.apache.org/jira/browse/CAMEL-23506>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-56140>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w2v8-8q6c-3rhr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-56140> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-56140>
