CVE-2026-40048: Unsafe Deserialization in Apache Camel-PQC FileBasedKeyLifecycleManager
- Vendor
- Apache Software Foundation
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.
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.
Exploits
2 exploits validated by Mallory's analysis.
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.
References
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.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.