cve.bz

CVE-2026-42527 apache camel: Deserialization of Untrusted Data

8.1 highEPSS 0.7%Fix available

High (8.1) in apache camel. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.camel:camel-jms 4.14.8, 4.18.3, 4.21.0.

On this page
Deserialization of Untrusted Data vulnerability in Apache Camel. The default ObjectInputFilter pattern shipped with several Apache Camel components for defense-in-depth deserialization filtering ('java.**;javax.**;org.apache.camel.**;!*', or the no-'javax.**' variant in the aggregation-repository components) uses a recursive 'java.**' glob that admits classes whose hashCode/equals/readObject methods perform network I/O, notably java.net.URL and java.net.InetAddress. When an attacker can deliver a Java-serialized payload to an affected Camel consumer, deserialization of a HashMap (or any collection that calls hashCode on its elements) containing java.net.URL keys causes the JVM to issue DNS queries to the attacker-supplied host during the deserialization side-effect. The class-level filter check passes because the resulting object's class (HashMap) is allow-listed; the DNS query is observable on an attacker-controlled DNS server, providing an out-of-band side channel. The exposure is highest on the camel-jms family because JmsBinding.extractBodyFromJms invokes ObjectMessage.getObject() unconditionally when mapJmsMessage=true (default). Affected components: camel-jms, camel-sjms, camel-amqp, camel-mina, camel-netty, camel-netty-http, camel-vertx-http, camel-infinispan, and the aggregation repository components camel-leveldb, camel-cassandraql, camel-consul, camel-sql (JDBC aggregation repository). This issue affects Apache Camel: from 4.14.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 a version that contains the CAMEL-23372 fix once available: 4.21.0 for the 4.21.x line, 4.18.3 for the 4.18.x line, and 4.14.8 for the 4.14.x line. For deployments that cannot upgrade immediately, configure a JMS-provider-side allow-list (Apache ActiveMQ Artemis 'deserializationAllowList' / 'deserializationDenyList', Apache ActiveMQ Classic 'org.apache.activemq.SERIALIZABLE_PACKAGES') as the primary mitigation, and/or override the in-code default via the endpoint-level 'deserializationFilter' option or the JVM-wide '-Djdk.serialFilter' system property with an explicit deny: '!java.net.**;java.**;javax.**;org.apache.camel.**;!*' (or '!java.net.**;java.**;org.apache.camel.**;!*' for the aggregation-repository components, which do not include javax.**).

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • org.apache.camel:camel-jms (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-sjms (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-amqp (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-mina (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-netty (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-netty-http (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-vertx-http (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • org.apache.camel:camel-infinispan (Maven): fixed in 4.14.8, 4.18.3, 4.21.0
  • Vendor advisory: https://camel.apache.org/security/CVE-2026-42527.html

Ask an AI about this CVE

Show the promptExplain CVE-2026-42527 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42527?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42527?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42527 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-42527

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-42527](https://cve.bz/cve/badge/CVE-2026-42527.svg)](https://cve.bz/cve/CVE-2026-42527)

HTML:

<a href="https://cve.bz/cve/CVE-2026-42527"><img src="https://cve.bz/cve/badge/CVE-2026-42527.svg" alt="CVE-2026-42527"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Camelfrom 4.14.0 before 4.14.8
Apache Software Foundation Apache Camelfrom 4.15.0 before 4.18.3
Apache Software Foundation Apache Camelfrom 4.19.0 before 4.21.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-jms>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-jms>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-jms>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sjms>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sjms>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sjms>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-amqp>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-amqp>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-amqp>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-mina>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-mina>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-mina>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty-http>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty-http>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-netty-http>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-vertx-http>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-vertx-http>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-vertx-http>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-infinispan>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-infinispan>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-infinispan>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-leveldb>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-leveldb>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-leveldb>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-cassandraql>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-cassandraql>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-cassandraql>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-consul>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-consul>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-consul>=4.19.0 <4.21.04.21.0
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sql>=4.14.0 <4.14.84.14.8
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sql>=4.18.0 <4.18.34.18.3
GHSA-8h6p-jvhf-9hcrMavenorg.apache.camel:camel-sql>=4.19.0 <4.21.04.21.0

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate: Apache Camel components are susceptible to information disclosure through deserialization of untrusted data. When an attacker provides a specially crafted Java-serialized payload to an affected Camel consumer, the default ObjectInputFilter pattern allows DNS queries to an attacker-controlled host. This vulnerability primarily impacts deployments where camel-jms is used with mapJmsMessage=true (default), enabling an out-of-band side channel for information leakage.

Red Hat's mitigation

To mitigate this issue, configure a JVM-wide deserialization filter to explicitly deny `java.net` classes. This can be achieved by setting the system property `-Djdk.serialFilter='!java.net.**;java.**;javax.**;org.apache.camel.**;!*'` when starting the Java Virtual Machine. For aggregation-repository components, use `'!java.net.**;java.**;org.apache.camel.**;!*'`. This may impact functionality if legitimate deserialization of `java.net` classes is required. A restart of the affected Apache Camel application is required for the changes to take effect.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-amqpFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-cassandraqlFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-infinispanFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-jmsFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-nettyFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-netty-httpFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-sqlFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16camel-vertx-httpFixed 2026-09-24RHSA-2026:71675
Red Hat build of Apache Camel 4 for Quarkus 3camel-amqpNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-cassandraqlNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-infinispanNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-jmsNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-nettyNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-netty-httpNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-sqlNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-vertx-httpNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-amqpNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-cassandraqlNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-infinispanNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-jmsNot affected
4 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42527.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • oscerd/CVE-2026-42527 Harbor Check: matches CVE 0 stars, Java, created
    Reproducer for CVE-2026-42527 — Apache Camel permissive default ObjectInputFilter admits java.net.URL, enabling a DNS-based out-of-band sid…

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON