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…
EPSS 0.2%top 84%

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: 04/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.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

org.apache.camel/camel-pqc
pkg:maven/org.apache.camel/camel-pqc
Affected versions
=4.18.0=4.19.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:10:01 UTC

Technical Analysis

The vulnerability in Apache Camel PQC involves insecure deserialization in the FileBasedKeyLifecycleManager class, which reads serialized Java objects from <keyId>.key files using java.io.ObjectInputStream without applying ObjectInputFilter or class-loading restrictions. This allows any side effects in the deserialized object's readObject() method to execute before type checks, enabling arbitrary code execution if an attacker can write crafted serialized objects to the key directory. Attack vectors include path traversal, misconfigured filesystem permissions, compromised key provisioning, or symlink attacks. The flaw affects Apache Camel versions 4.18.0 up to but not including 4.18.2 and 4.19.0 up to but not including 4.20.0. The issue is resolved by upgrading to 4.18.2 or 4.20.0, which replace the vulnerable deserialization mechanism with secure 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 context of the Apache Camel application. This can lead to full compromise of the application, including confidentiality, integrity, and availability impacts. The CVSS v3.1 score is 7.8 (High), reflecting local attack vector with low complexity, requiring low privileges but no user interaction, and resulting in high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available. Users should upgrade Apache Camel PQC to version 4.20.0 or, if using the 4.18.x LTS stream, to version 4.18.2. These versions replace the insecure deserialization mechanism with secure Base64 JSON encoding of keys, eliminating the vulnerability. Until upgraded, ensure that the key directory is protected against unauthorized write access to prevent exploitation. Check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-40048 for additional guidance.

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
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-40048","vendor":"Red Hat"}]

Threat ID: 69ef291bba26a39fba10e179

Added to database: 04/27/2026, 09:15:07 UTC

Last enriched: 07/15/2026, 09:10:01 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 91

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