Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40048: CWE-502 Deserialization of Untrusted Data in Apache Software Foundation Apache Camel PQC

0
High
VulnerabilityCVE-2026-40048cvecve-2026-40048cwe-502
Published: Mon Apr 27 2026 (04/27/2026, 07:53:54 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Camel PQC

Description

The Camel-PQC FileBasedKeyLifecycleManager class deserializes the contents of `<keyId>.key` files in the configured key directory using java.io.ObjectInputStream without applying any ObjectInputFilter or class-loading restrictions. The cast to `java.security.KeyPair` is evaluated only after `readObject()` has already returned, so any `readObject()` side effects in the deserialized object run before the type check. An attacker who can write to the key directory used by a Camel application — for example through a path traversal into the directory, misconfigured filesystem permissions on the volume where keys are stored, a compromised key provisioning pipeline, or a symlink attack — can place a crafted serialized Java object that, when deserialized during normal key lifecycle operations, results in arbitrary code execution in the context of the application. This issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2. Users are recommended to upgrade to version 4.20.0, which fixes the issue by replacing java.io.ObjectInputStream-based key and metadata storage with standard PKCS#8 (private key) / X.509 SubjectPublicKeyInfo (public key) Base64 JSON encoding. For users on the 4.18.x LTS releases stream, upgrade to 4.18.2.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/27/2026, 09:31:43 UTC

Technical Analysis

The vulnerability in Apache Camel PQC involves unsafe deserialization of key files by the FileBasedKeyLifecycleManager class using java.io.ObjectInputStream without ObjectInputFilter or class-loading restrictions. The deserialization occurs before type checks, enabling execution of side effects embedded in malicious serialized objects. Attackers with write access to the key directory can place crafted serialized Java objects that lead to arbitrary code execution during normal key lifecycle operations. Affected versions are 4.18.0 up to but not including 4.18.2 and 4.19.0 up to but not including 4.20.0. The fix replaces the insecure deserialization mechanism with standard PKCS#8 and X.509 Base64 JSON encoding for key storage.

Potential Impact

Successful exploitation allows an attacker with write access to the key directory to execute arbitrary code within the Apache Camel application context. This can lead to full compromise of the affected application instance. The vulnerability requires the attacker to have the ability to write files to the key directory, which may be possible through path traversal, filesystem permission misconfiguration, compromised key provisioning, or symlink attacks.

Mitigation Recommendations

Users should upgrade to Apache Camel PQC version 4.20.0 or later, or to 4.18.2 if using the 4.18.x LTS stream, where the vulnerability is fixed by replacing insecure deserialization with safer Base64 JSON encoding of keys. No other mitigations are specified. Patch status is not explicitly stated but the vendor advisory clearly recommends upgrading to these fixed versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-04-08T16:40:29.330Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 69ef291bba26a39fba10e179

Added to database: 4/27/2026, 9:15:07 AM

Last enriched: 4/27/2026, 9:31:43 AM

Last updated: 4/28/2026, 3:04:48 AM

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses