Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain write access to key directory
-
DeliveryPlant crafted serialized `.key` file
-
ExploitKey lifecycle op calls readObject()
-
ExecutionGadget chain executes on deserialization
-
PersistArbitrary code runs as application
-
ImpactFull host/application compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to be using the camel-pqc FileBasedKeyLifecycleManager with a file-backed key store, and the attacker must be able to write or replace a |
| Impact | Signals are consistent and point to a genuine-but-conditional risk rather than a mass-exploitation emergency. The CVSS vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H) and SSVC 'Technical Impact: total' both reflect that successful exploitation gives full compromise of the application, but AV:L plus the description confirm the attacker must already be able to write into the key directory. SSVC 'Exploitation: none' and 'Automatable: no' align with the very low EPSS (0.07%, 22nd percentile) and the absence of KEV listing or public PoC - this is not opportunistically wormable. The practical priority is therefore driven by whether the affected 4.18.x/4.19.x PQC feature is actually in use and how well the key directory is isolated; where it is used, the total-impact outcome justifies prompt patching, but for most estates this is a moderate, patch-in-normal-cycle item. No major conflicts exist between sources; the only caveat is that the local write precondition means raw CVSS 7.8 overstates remote risk against a hardened deployment. |
| Exploit ScenarioDerived | An attacker gains write access to the Camel key directory - for example by exploiting a path-traversal upload, abusing loose permissions on the mounted key volume, or compromising the key-provisioning pipeline - and drops a malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Arbitrary code execution in Apache Camel's PQC component (camel-pqc) arises because FileBasedKeyLifecycleManager deserializes <keyId>.key files with java.io.ObjectInputStream and no ObjectInputFilter or class allow-listing. Because the KeyPair cast happens only after readObject() returns, malicious gadget-chain side effects execute before any type check, letting an attacker who can plant a crafted serialized object in the key directory run code as the application. It affects Camel 4.19.0 before 4.20.0 and 4.18.0 before 4.18.2, carries CVSS 7.8, and has no public exploit identified at time of analysis; EPSS is very low at 0.07%.
RemediationAI
Vendor-released patch: upgrade to Apache Camel 4.20.0, or 4.18.2 on the 4.18.x LTS stream; these replace ObjectInputStream-based key/metadata storage with PKCS#8 and X.509 SubjectPublicKeyInfo Base64 JSON encoding, eliminating the deserialization path (see https://camel.apache.org/security/CVE-2026-40048.html). Note that after upgrading, existing serialized .key files are in the old format, so plan for key re-provisioning/migration to the new encoding. Where immediate patching is not possible, reduce exposure by restricting filesystem permissions on the configured key directory so only the Camel process account can write to it, mounting that volume without attacker-writable paths, and disabling symlink following to blunt the symlink and path-traversal vectors; audit any key-provisioning pipeline that feeds the directory. As a hardening measure, deploy a JVM-wide serialization filter (jdk.serialFilter / ObjectInputFilter) to reject unexpected classes - the trade-off is potential breakage if other components rely on Java serialization, so test before rolling out. Red Hat customers should track https://access.redhat.com/security/cve/CVE-2026-40048 for downstream fixed builds.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic Java deserialization weakness (CWE-502) in the camel-pqc integration component, which manages post-quantum/asymmetric key material on disk. FileBasedKeyLifecycleManager reads each <keyId>.key file straight into an ObjectInputStream and calls readObject() expecting a java.security.KeyPair, but ObjectInputStream reconstructs whatever class the byte stream names, invoking that class's readObject()/readResolve() and finalizer logic during reconstruction - well before the (KeyPair) cast can reject it. With a suitable gadget chain on the classpath (e.g. Commons-Collections, Spring, or other libraries common in Camel deployments), this reconstruction yields code execution. CPE data scopes the issue to cpe:2.3:a:apache:camel across the listed 4.18.x/4.19.x ranges. Version 4.20.0 removes ObjectInputStream entirely, storing keys as PKCS#8 (private) and X.509 SubjectPublicKeyInfo (public) in Base64 JSON, which is not code-bearing.
Know when Camel gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attacker needs local write access to the key directory (AV:L, PR:L); once a malicious file is placed, deserialization reliably yields full code execution (C/I/A:H).
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
4DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 4 maven packages depend on org.apache.camel:camel-pqc (3 direct, 1 indirect)
Ecosystem-wide dependent count for version 4.18.2.
Executive ViewAI
Apache Camel versions 4.18.0-4.18.1 and 4.19.0-4.19.x contain a deserialization vulnerability in the PQC component allowing arbitrary code execution if an attacker can write malicious objects to the application's key storage directory; no public exploit identified at time of analysis. Successful exploitation would grant application-level code execution and potential access to encryption keys. Organizations must upgrade to patched versions 4.18.2 or 4.20.0 immediately.
Apply vendor patch. Interim: restrict file-system write permissions on key storage directories to the Camel application service account only, and deploy file integrity monitoring to detect unauthorized file modifications in those directories.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Bypass/Injection vulnerability in Apache Camel components under particular conditions.10.0 through <= 4.10.1, from 4.8.0
The XSLT component in Apache Camel before 2.11.4 and 2.12.x before 2.12.3 allows remote attackers to read arbitrary file
Apache Camel's Jackson and JacksonXML unmarshalling operation are vulnerable to Remote Code Execution attacks. Rated cri
The XSLT component in Apache Camel 2.11.x before 2.11.4, 2.12.x before 2.12.3, and possibly earlier versions allows remo
Cross-realm token acceptance bypass in Apache Camel Keycloak security policy. The KeycloakSecurityPolicy fails to proper
Deserialization of Untrusted Data vulnerability in Apache Camel LevelDB component. The Camel-LevelDB DefaultLevelDBSeria
Unsafe Java deserialization in the Apache Camel camel-mina component (versions 3.0.0 through 4.14.5, 4.15.0 through 4.18
Apache Camel's File is vulnerable to directory traversal. Rated high severity (CVSS 7.5), this vulnerability is remotely
The camel-castor component in Apache Camel 2.x before 2.19.4 and 2.20.x before 2.20.1 is vulnerable to Java object de-se
The camel-xstream component in Apache Camel before 2.15.5 and 2.16.x before 2.16.1 allow remote attackers to execute arb
The camel-hessian component in Apache Camel 2.x before 2.19.4 and 2.20.x before 2.20.1 is vulnerable to Java object de-s
Apache Camel before 2.9.7, 2.10.0 before 2.10.7, 2.11.0 before 2.11.2, and 2.12.0 allows remote attackers to execute arb
EUVD-2026-25790
GHSA-v3vg-332r-mw99
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB