← Security advisories
Apache Camel security advisory

CVE-2026-133005

Camel-Redis RedisAggregationRepository deserializes Redis values with Redisson's default Kryo5Codec without a class filter

Description

camel-redis RedisAggregationRepository.doStart() built its Redisson client without setting a codec, so Redisson installed Kryo5Codec with registration not required and a JavaSerializer registered for Throwable, and every value the repository read back from Redis (at route start-up, from the aggregation interval task, and during recovery) was deserialized through unrestricted Kryo instantiation and an unfiltered ObjectInputStream, even with useRecovery=false. An attacker able to write to the Redis store used as the aggregation repository could place a crafted serialized value that leads to remote code execution when a usable gadget chain is present on the classpath. The fixed releases apply a class allow-list to the codec and an ObjectInputFilter on the Java-serialization path.

Mitigation

Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.

Credit

This issue was discovered by Mario Madersbacher

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-27225 refers to the various commits that resolved the issue, and have more details.

References