IT SBIT Services
Schneeberger
DEEN
CVE tracker

Apache Camel Spring Redis: Unfiltered Java deserialization of Redis payloads

CVE-2026-78165High 8.8Public exploit

← All vulnerabilities

Summary

The Spring Redis component of Apache Camel uses the default JDK serializer without an ObjectInputFilter, so it deserializes Redis payloads without restriction. An attacker who can publish to a channel that Camel subscribes to can trigger deserialization of a crafted object and execute code on the Camel host (CVSS 8.8, CWE-502). The same default serializer also affects producer read commands (GET, HGET, HGETALL, HVALS) and the Redis idempotent repository, and a custom redisTemplate does not protect the consumer path.

Affected

  • Apache Camel from 2.11.0 before 4.18.5
  • Apache Camel from 4.19.0 before 4.22.1
  • Only deployments that do not set the serializer option to a non-Java serializer are affected by default.

Fixed in

  • Apache Camel 4.23.0
  • Apache Camel 4.22.1 (4.22.x stream)
  • Apache Camel 4.18.5 (4.18.x stream)
  • Releases 4.14.x and earlier are end of life and receive no fix.

Workaround

  • Set the JVM-wide system property jdk.serialFilter, for example -Djdk.serialFilter=!java.net.**;java.**;javax.**;org.apache.camel.**;!*
  • Or set the endpoint option serializer to a non-Java serializer such as StringRedisSerializer. This must be set as the serializer option, not only on a custom redisTemplate.
  • Require authentication on the Redis instance and restrict which clients may publish to subscribed channels.
  • Do not expose Redis instances used by Camel to untrusted networks.

Exploitation

  • CISA SSVC: exploitation status 'poc' (proof of concept available), not automatable, total technical impact.
  • No confirmed active exploitation is known.

Our recommendation

  • Upgrade Apache Camel to 4.23.0, or to 4.22.1 or 4.18.5 on the respective release streams.
  • Move any deployment on 4.14.x or earlier to a supported release.
  • If upgrading is not possible immediately, apply the jdk.serialFilter or serializer workaround.
  • Check whether Camel Spring Redis endpoints consume channels that untrusted parties can publish to.
  • Review Redis access controls and monitor for unexpected PUBLISH activity and Java deserialization errors.

Public exploits

Links to third-party sites, not checked by us – exploit code can contain malware. Only use it in isolated test environments.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 15:52.

Original description (NVD)

Deserialization of Untrusted Data vulnerability in Apache Camel Spring Redis component. This issue affects Apache Camel: from 2.11.0 before 4.18.5, from 4.19.0 before 4.22.1. RedisConfiguration.getSerializer lazily built a bare JdkSerializationRedisSerializer whenever no serializer option was configured, and that instance was used for every read the component performs. Spring's implementation delegates through DeserializingConverter to DefaultDeserializer, which reads the bytes with a ConfigurableObjectInputStream and installs no java.io.ObjectInputFilter on the stream, so an arbitrary serialized class graph was materialised and its readObject method executed. RedisConsumer.setBody applied that serializer to the raw bytes of every message published to the subscribed channels, before the Exchange was constructed and therefore before any route logic could inspect the message, so an actor able to issue PUBLISH on a subscribed channel reached the deserialization sink directly. The same default serializer backed the RedisTemplate built by RedisConfiguration.createDefaultTemplate, so the producer read commands GET, HGET, HGETALL and HVALS deserialized whatever was stored in the Redis keyspace, and SpringRedisIdempotentRepository shared that template. Configuring a custom redisTemplate did not close the consumer path, because RedisConsumer.setBody reads getSerializer directly rather than the serializer attached to the template, so a deployment that had wired a String serializer into its own template remained exposed on the consumer side unless it also set the serializer option. The component never constructed a java.io.ObjectInputStream itself, which is why earlier passes over the Camel codebase for unfiltered Java deserialization did not reach it. The behaviour dates back to the introduction of the component, first released in 2.11.0, and was unchanged until this fix. Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.1. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.14.x releases stream and earlier reached end of life before this issue was resolved and will not receive a fix, so deployments on those lines must move to a supported release. For deployments that cannot upgrade immediately, set the JVM-wide jdk.serialFilter system property, which the affected code path honours because it reads through a java.io.ObjectInputStream, for example -Djdk.serialFilter=!java.net.**;java.**;javax.**;org.apache.camel.**;!* ; or set the serializer endpoint option to a serializer that does not use Java serialization, such as StringRedisSerializer, noting that this must be set as the serializer option and not only on a custom redisTemplate. As defence in depth, require authentication on the Redis instance and restrict which clients may publish to the subscribed channels, and do not expose a Redis instance consumed by Camel to untrusted networks.

NVD references (7)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.