Apache Camel Camel-PQC Unsafe Deserialization Enables Code Execution
Apache disclosed CVE-2026-40048, an unsafe deserialization flaw in the Camel-PQC component of Apache Camel that can lead to arbitrary code execution. The vulnerability is in FileBasedKeyLifecycleManager, which deserializes <keyId>.key files with java.io.ObjectInputStream without ObjectInputFilter or class-loading restrictions, allowing malicious readObject() behavior to run before the data is cast to java.security.KeyPair. An attacker who can place a crafted file in the configured key directory—through path traversal, weak filesystem permissions, a compromised key provisioning pipeline, or a symlink attack—could execute code in the context of the Camel application.
The issue affects org.apache.camel:camel-pqc versions 4.19.0 before 4.20.0 and 4.18.0 before 4.18.2. Apache fixed the flaw by replacing ObjectInputStream-based key and metadata storage with PKCS#8 and X.509 SubjectPublicKeyInfo Base64 JSON encoding, and advised users to upgrade to 4.20.0 or 4.18.2 on the 4.18.x LTS line. Apache credited Andrea Cosentino of the Apache Software Foundation and Venkatraman Kumar of Securin with discovering the vulnerability.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
3 events from the most recent confirmed update back to the earliest known activity.
oss-sec republishes Apache Camel CVE-2026-40048 disclosure
An oss-sec post summarized CVE-2026-40048, describing the unsafe deserialization issue in Camel-PQC's FileBasedKeyLifecycleManager and reiterating that upgrading to Camel 4.20.0 or 4.18.2 mitigates the risk. The post did not introduce materially new incident details beyond Apache's advisory.
Apache publishes advisory for CVE-2026-40048
Apache disclosed CVE-2026-40048 as a high-severity unsafe deserialization vulnerability in Camel-PQC that could allow arbitrary code execution if an attacker can write crafted serialized objects into the configured key directory. The advisory credited Andrea Cosentino of the Apache Software Foundation and Venkatraman Kumar of Securin for discovering the issue and urged users to upgrade.
Apache fixes CVE-2026-40048 in Camel-PQC releases
Apache addressed an unsafe deserialization flaw in Camel-PQC's FileBasedKeyLifecycleManager by replacing ObjectInputStream-based key storage with PKCS#8 and X.509 SubjectPublicKeyInfo Base64 JSON encoding. The fix was released in Apache Camel versions 4.20.0 and 4.18.2, affecting vulnerable versions 4.19.0 before 4.20.0 and 4.18.0 before 4.18.2.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
oss-sec: CVE-2026-40048: Apache Camel: Camel-PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager
seclists.org
Open sourceGitHub - oscerd/CVE-2026-25747: CVE-2026-25747 - Camel LevelDB Deserialization Vulnerability · GitHub
github.com
Open sourceApache Camel Security Advisory - CVE-2026-40048 - Apache Camel
camel.apache.org
Open sourceApache Camel Security Advisory - CVE-2026-25747 - Apache Camel
camel.apache.org
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


