Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-40473: Unsafe Java Deserialization in Apache Camel camel-mina

Published Apr 27, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS1.3%70th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2026-40473CWE-502 · Deserialization of Untrusted Data

CVE-2026-40473 is an unsafe Java deserialization vulnerability in Apache Camel's camel-mina component. MinaConverter.toObjectInput(IoBuffer) wraps an IoBuffer in java.io.ObjectInputStream without applying an ObjectInputFilter or class-loading restrictions. When a TCP or UDP consumer route converts attacker-supplied data to ObjectInput and invokes readObject(), a crafted serialized Java object can trigger arbitrary code execution in the application's context. Affected Apache Camel versions are 3.0.0 before 4.14.6, 4.15.0 before 4.18.2, and 4.19.0 before 4.20.0.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Remote attackers can execute arbitrary code in the security context of a vulnerable Apache Camel application. The resulting execution is subject to the application's privileges. F5 found no affected products among the supported releases it evaluated; releases beyond End of Technical Support were excluded from that evaluation.

Mitigation

If you can’t patch tonight, do this now.

Until upgraded, avoid camel-mina TCP or UDP consumer flows that convert untrusted input to ObjectInput, including conversions through getBody(ObjectInput.class) or @Body ObjectInput. Avoid deserializing untrusted network data.

Remediation

Patch, then assume compromise.

Upgrade Apache Camel to 4.20.0, or to 4.14.6 for deployments on the 4.14.x LTS stream, or 4.18.2 for deployments on the 4.18.x stream.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
CVE-2026-33453Repository contains a multi-PoC assessment for three Apache Camel 4.18.0 vulnerabilities, not a framework module. Structure is split into per-CVE Java applications under poc/cve-2026-33453-coap, poc/cve-2026-40473-mina, and poc/cve-2026-40858-infinispan; a docker-compose lab that exposes the vulnerable services; and three Python exploit scripts under poc/exploits. README.md and EXPLOITS-REPORT.md document root cause, attack flow, and reproduction steps. Main exploit capabilities: - CVE-2026-33453: exploit_cve_2026_33453_coap.py crafts raw CoAP UDP packets and injects CamelExecCommandExecutable/CamelExecCommandArgs as URI query parameters to override camel-exec behavior on /api/status. It is a direct unauthenticated network RCE PoC and parses CoAP responses to display command output. - CVE-2026-40473: exploit_cve_2026_40473_mina.py targets MINA TCP endpoints, especially raw TCP on 9879, and uses ysoserial-generated gadget chains for unsafe Java deserialization. It includes a callback listener to capture command output via HTTP POST/curl from the victim. The Java helper MinaGadgetGenerator builds MINA-compatible serialized gadget bytes, and MinaTestPayload validates wire compatibility. - CVE-2026-40858: exploit_cve_2026_40858_infinispan.py builds a Hot Rod PUT request to write malicious serialized bytes into an Infinispan cache entry used by Camel aggregation. This is a delayed-trigger exploit: code execution occurs when Camel later deserializes the cached object. It can use ysoserial if available or a demo serialized object otherwise. Repository purpose: to demonstrate exploitability of three claimed Apache Camel 4.18.0 issues in a controlled Docker lab. The Java apps intentionally expose vulnerable routes, while the Python scripts operationalize exploitation over UDP/TCP/cache protocols. The code is coherent, aligned with the documented CVEs, and clearly intended as working proof-of-concept exploit material rather than mere detection.dinosn · Disclosed Apr 27, 2026 · markdown · dockerfile · network · webOperationalapache-camelRepository is a multi-PoC research project for three Apache Camel 4.18.0 vulnerabilities, not a framework module. Structure is split into: (1) README and exploit report documenting root cause and reproduction, (2) three Java/Maven vulnerable demo applications under poc/cve-* with Dockerfiles, (3) docker-compose.yml to launch the lab, and (4) three Python exploit scripts under poc/exploits. The CoAP PoC demonstrates unauthenticated header injection over UDP/5683 by crafting raw CoAP packets with URI query parameters that become Camel headers, overriding camel-exec command settings and returning command output. The MINA PoC demonstrates unsafe Java deserialization over TCP on ports 9877/9878/9879; the most important path is 9879 with allowDefaultCodec=false, where raw IoBuffer data is converted into ObjectInputStream without filtering. Supporting Java utilities generate MINA-compatible serialized payloads and test framing. The Python MINA exploit can use ysoserial gadget chains and starts a local HTTP listener to capture exfiltrated command output via curl from the target. The Infinispan PoC demonstrates cache poisoning against a Camel aggregation repository backed by Infinispan; the Python exploit crafts a Hot Rod PUT request to write a malicious serialized object to a predictable cache key, relying on later deserialization by Camel to trigger execution. Overall, this is a real exploit repository with operational PoCs, local lab infrastructure, and clear network targets: CoAP UDP/5683, MINA TCP/9877-9879, and Infinispan Hot Rod TCP/11222.dinosn · Disclosed Apr 27, 2026 · markdown · dockerfile · network · webOperationalCVE-2026-40473This repository is a functional proof-of-concept reproducer for CVE-2026-40473, an unsafe deserialization issue in Apache Camel's camel-mina component. It is not just documentation: it contains a runnable Spring Boot application, a vulnerable Camel route, and a helper controller that simulates the attacker path. Repository structure is small and purpose-built. Application.java is the Spring Boot entry point. MinaObjectRoute.java is the core vulnerable component: it defines a Camel route from `mina:tcp://0.0.0.0:5555?sync=false&allowDefaultCodec=false`, retrieves the incoming body as `ObjectInput`, and immediately calls `readObject()`. That is the deserialization sink and the main exploit target. ExploitController.java exposes `POST /exploit/inject`, decodes a Base64 payload, opens a raw socket to `localhost:5555`, writes the serialized bytes, and then checks for `/tmp/pwned` as proof of code execution. application.properties sets the HTTP server port to 8080. Dockerfile and docker-compose.yml package and expose the demo app. The exploit capability is remote code execution over the network via crafted Java serialized data. The helper web endpoint is not the underlying vulnerability itself; it is a convenience wrapper that forwards attacker-supplied payload bytes to the internal MINA TCP listener. The actual attack vector is network-based access to a vulnerable camel-mina TCP/UDP consumer that converts untrusted bytes to ObjectInput and deserializes them. The included Maven configuration pins Camel to 4.18.1, an affected version, and intentionally includes `commons-collections:3.2.1` to provide a usable gadget chain for exploitation. Operationally, an attacker supplies a serialized gadget payload, the helper decodes and forwards it to the MINA listener, Camel's MinaConverter wraps the bytes in ObjectInputStream without filtering, and `readObject()` triggers gadget execution. The README demonstrates this with a ysoserial CommonsCollections7 payload executing `touch /tmp/pwned`. This makes the repository an operational exploit reproducer rather than a scanner or detection script.oscerd · Disclosed Jul 9, 2026 · java · yaml · network · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationCamelapplication
FAQ

Frequently asked questions

Is CVE-2026-40473 exploited in the wild?
As of Oct 10, 2026, Mallory has no reports of CVE-2026-40473 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-40473?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-40473, the earliest disclosed Apr 27, 2026.
Is there a patch for CVE-2026-40473?
Upgrade Apache Camel to 4.20.0, or to 4.14.6 for deployments on the 4.14.x LTS stream, or 4.18.2 for deployments on the 4.18.x stream.
What products are affected by CVE-2026-40473?
Apache Software Foundation Camel.
How severe is CVE-2026-40473?
CVE-2026-40473 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 1.3% (70th percentile) as of Oct 10, 2026.
Activity feed

Recent activity

8 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.