Vulnerabilities in pkg:maven/org.apache.camel/camel-aws2-sns
PACKAGECVE-2026-56140 is a CRITICAL (CVSS 9.8) an inbound camel-namespace filter was vulnerability (CWE-20: Improper Input Validation) affecting Apache Camel-AWS2-SNS libraries in the Maven ecosystem. The issue involves an inbound camel-namespace filter was added to sns2headerfilterstrategy. Remediation is available by upgrading affected packages to version 4.14.8, 4.18.3, 4.21.0.
pkg:maven/org.apache.camel/camel-aws2-sns
Vulnerability advisories affecting package pkg:maven/org.apache.camel/camel-aws2-sns. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w2v8-8q6c-3rhr | CVE-2026-56140 | CRITICAL | Apache Camel-AWS2-SNS: An inbound Camel-namespace filter was added to Sns2HeaderFilterStrategy |
CVE-2026-56140 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-56140
To remediate this vulnerability, upgrade all affected Apache Camel-AWS2-SNS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws2-sns</artifactId>
<version>4.14.8</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws2-sns</artifactId>
<version>4.18.3</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws2-sns</artifactId>
<version>4.21.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.camel
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-56140, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.camel
Analyze the terminal output to locate any version of Apache Camel-AWS2-SNS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache Camel-AWS2-SNS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-56140 Affected Apache Camel-AWS2-SNS Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.camel:camel-aws2-sns
|
Maven |
≥ 4.0.0
< 4.14.8
|
4.14.8
|
|
org.apache.camel:camel-aws2-sns
|
Maven |
≥ 4.15.0
< 4.18.3
|
4.18.3
|
|
org.apache.camel:camel-aws2-sns
|
Maven |
≥ 4.19.0
< 4.21.0
|
4.21.0
|
References
Frequently Asked Questions
What is CVE-2026-56140?
Which Apache Camel-AWS2-SNS versions are affected?
What version fixes CVE-2026-56140?
Is camel-aws2-sns affected?
What is the CVSS score of CVE-2026-56140?
What CWE is associated with CVE-2026-56140?
How can I check Maven dependencies for CVE-2026-56140?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w2v8-8q6c-3rhr",
"modified" : "2026-08-26T14:34:19Z",
"published" : "2026-07-06T09:30:30Z",
"aliases" : [ "CVE-2026-56140" ],
"summary" : "Apache Camel-AWS2-SNS: An inbound Camel-namespace filter was added to Sns2HeaderFilterStrategy",
"details" : "Improper Input Validation vulnerability in Apache Camel AWS SNS component.\n\n\nThe 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.\n\n\nThis 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.\n\nThis 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-aws2-sns"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.14.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-aws2-sns"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.15.0"
}, {
"fixed" : "4.18.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-aws2-sns"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.19.0"
}, {
"fixed" : "4.21.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-56140"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/23221"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/23357"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/23373"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/5f57258fb33d33ef99df10594f8fe9f11d7c2b7e"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/7b334be0419839097a132d4ff3427fc4083e695e"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/b7f78292e747a28dbf5da444265557b5f9f3c1a1"
}, {
"type" : "WEB",
"url" : "https://camel.apache.org/security/CVE-2026-56140.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/camel"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/releases/tag/camel-4.14.8"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/releases/tag/camel-4.18.3"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/releases/tag/camel-4.21.0"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/CAMEL-23506"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-26T14:34:19Z",
"nvd_published_at" : "2026-07-06T09:16:39Z"
}
}