Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-40048: Unsafe Deserialization in Apache Camel-PQC FileBasedKeyLifecycleManager

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

CVE-2026-40048 is an unsafe Java deserialization vulnerability in Apache Camel's camel-pqc component, affecting versions 4.18.0 before 4.18.2 and 4.19.0 before 4.20.0. FileBasedKeyLifecycleManager deserializes key files from its configured directory using java.io.ObjectInputStream without an ObjectInputFilter or class-loading restrictions. The cast to java.security.KeyPair occurs only after readObject() returns, allowing malicious deserialization side effects to execute before type validation. An attacker able to introduce a crafted serialized object into the key directory can achieve arbitrary code execution during normal key lifecycle operations.

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.

Successful exploitation allows arbitrary code execution with the Camel application's privileges. This compromises the application's execution context and potentially the key material, data, and resources accessible to that identity. Exploitation requires attacker-controlled serialized data to reach the configured key directory; network access alone is not sufficient.

Mitigation

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

Until upgrading, restrict write access to the configured key directory and its backing storage to trusted application and provisioning identities. Correct excessive filesystem permissions, prevent path traversal and symlink-based writes into the directory, and secure the key provisioning pipeline. These controls reduce opportunities to introduce malicious serialized objects but do not eliminate the unsafe deserialization flaw.

Remediation

Patch, then assume compromise.

Upgrade Apache Camel to 4.20.0, or 4.18.2 for the 4.18.x LTS release stream, to address CVE-2026-40048. These releases replace ObjectInputStream-based key and metadata storage with Base64 JSON encoding using PKCS#8 for private keys and X.509 SubjectPublicKeyInfo for public keys. Related incomplete-remediation vulnerabilities are addressed in 4.21.0 and 4.18.3; prefer those or later supported releases to cover the follow-on issues as well.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2026-40048This repository is a compact Spring Boot reproducer for CVE-2026-40048, a Java unsafe deserialization issue in Apache Camel's camel-pqc component, specifically FileBasedKeyLifecycleManager.getKey(). The project contains 8 files total, with the main logic in two Java source files: Application.java starts the web app, and ExploitController.java exposes HTTP endpoints that simulate attacker write access and then trigger the vulnerable deserialization path. The Maven build (pom.xml) intentionally pins camel-pqc to vulnerable version 4.18.1 and includes commons-collections 3.2.1 to ensure a usable gadget chain is present. The app listens on port 8080 and is packaged for Docker execution via Dockerfile and docker-compose.yml. Exploit flow: POST /exploit/inject accepts a Base64-encoded serialized payload, decodes it, and writes it to /tmp/pqc-keys/mykey.key. GET /exploit/trigger then creates a new FileBasedKeyLifecycleManager pointing at /tmp/pqc-keys and calls getKey("mykey"), causing ObjectInputStream.readObject() to deserialize the attacker-controlled file. The code explicitly notes that gadget execution occurs before the eventual KeyPair cast, so even if getKey throws an exception, arbitrary code may already have run. Successful exploitation is demonstrated by creation of /tmp/pwned. GET /exploit/cleanup removes the planted key file and proof artifact. This is a real exploit reproducer rather than a scanner or detection script. It does not autonomously attack remote targets; instead, it provides a controlled local/web interface to demonstrate the vulnerable behavior and prove RCE under the documented preconditions.oscerd · Disclosed Jul 8, 2026 · java · yaml · web · fileOperationalCVE-2026-46590This repository is a self-contained Java/Spring Boot proof-of-concept exploit for Apache Camel camel-pqc unsafe deserialization, CVE-2026-46590. It is not part of a common exploit framework. The repo contains a minimal web application that exposes a single GET endpoint, /exploit/attack, which demonstrates exploitation against FileBasedKeyLifecycleManager in vulnerable camel-pqc versions (camel.version pinned to 4.18.2 in pom.xml). Structure and purpose: Application.java is the Spring Boot entry point. ExploitController.java contains the main exploit flow: it creates a temporary key directory, writes an attacker-controlled legacy serialized key file named victim-key.key, instantiates FileBasedKeyLifecycleManager on that directory, and calls manager.getKey("victim-key"). Because the vulnerable manager migrates legacy .key files using raw ObjectInputStream.readObject() without an ObjectInputFilter, the malicious object is deserialized before the KeyPair cast fails. Gadget.java builds the CommonsCollections6 gadget chain using commons-collections 3.2.1 and reflection into java.util internals. application.properties configures the app to listen on port 8080. Dockerfile and docker-compose.yml provide a reproducible containerized environment. Main exploit capability: arbitrary command execution during deserialization, provided the attacker can write to the key backend used by FileBasedKeyLifecycleManager. The PoC uses a benign hardcoded payload, /usr/bin/touch /tmp/pwned, and then checks for the existence of /tmp/pwned as proof of execution. The exploit is operational rather than weaponized because the payload is hardcoded and the app is purpose-built for demonstration. Attack path: this is primarily a local/file-based exploit condition against the target application's key storage, wrapped in a web-triggerable demo interface. The attacker-controlled input is the planted legacy .key file; the victim action is a routine getKey() call. The exposed HTTP endpoint is only for triggering the demonstration in the PoC environment, not the underlying vulnerability itself. Notable targeting details: README states affected versions are 4.18.0 before 4.18.3 and 4.19.0 before 4.21.0. It also references related incomplete remediation history (CVE-2026-40048) and a sibling AWS Secrets Manager issue (CVE-2026-43867), but the implemented code specifically targets the file-based manager path.oscerd · Disclosed Jul 15, 2026 · java · xml · local · web · fileOperational
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-40048 exploited in the wild?
As of Nov 5, 2026, Mallory has no reports of CVE-2026-40048 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-40048?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-40048, the earliest disclosed Jul 8, 2026.
Is there a patch for CVE-2026-40048?
Upgrade Apache Camel to 4.20.0, or 4.18.2 for the 4.18.x LTS release stream, to address CVE-2026-40048. These releases replace ObjectInputStream-based key and metadata storage with Base64 JSON encoding using PKCS#8 for private keys and X.509 SubjectPublicKeyInfo for public keys.
What products are affected by CVE-2026-40048?
Apache Software Foundation Camel.
How severe is CVE-2026-40048?
CVE-2026-40048 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.51% (37th percentile) as of Nov 5, 2026.
Activity feed

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
ghsa syntheticNews · Jul 6, 2026GHSA-857v-xvh8-7hjcA previously addressed Apache Camel camel-pqc issue whose remediation was incomplete, leaving unsafe deserialization paths addressed by CVE-2026-46590.Read more ↗ghsa syntheticNews · Jul 6, 2026GHSA-7cmx-qjh8-7v3vA prior Apache Camel PQC vulnerability tracked as CAMEL-23200, for which the vulnerabilities in this advisory are incomplete-remediation follow-ons. The content provides no further technical details.Read more ↗ghsa syntheticNews · Apr 27, 2026GHSA-v3vg-332r-mw99An unsafe Java deserialization vulnerability in Apache Camel's camel-pqc component permits arbitrary code execution in the application's context. An attacker must first be able to write a crafted serialized object into the configured key directory. Deserialization side effects execute before the subsequent KeyPair type check. The advisory identifies affected releases as 4.18.0 through versions before 4.18.2, and 4.19.0 through versions before 4.20.0. Versions 4.18.2 and 4.20.0 fix the issue by replacing Java object serialization with Base64 JSON storage using PKCS#8 private keys and X.509 SubjectPublicKeyInfo public keys.Read more ↗camel apacheNews · Jan 1, 2026Apache Camel Security Advisory - CVE-2026-40048 - Apache CamelA high-severity unsafe deserialization vulnerability in Apache Camel-PQC's FileBasedKeyLifecycleManager that can lead to arbitrary code execution if an attacker can place a crafted serialized object in the configured key directory.Read more ↗
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.