Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Camel PQC | 4.19.0 to before 4.20.0; 4.18.0 to before 4.18.2 | 4.20.0, 4.18.2 | Patch available | CNA |
| — | org.apache.camel:camel-pqc (Maven) | before 4.18.2 | 4.18.2 | Patch available | GHSA-v3vg-332r-mw99 |
| — | org.apache.camel:camel-pqc (Maven) | 4.19.0 to before 4.20.0 | 4.20.0 | Patch available | GHSA-v3vg-332r-mw99 |
- Apache Camel PQC VendorApache Affected 4.19.0 to before 4.20.0; 4.18.0 to before 4.18.2 Fixed in 4.20.0, 4.18.2 Patch available CNA
- org.apache.camel:camel-pqc (Maven) Vendor— Affected before 4.18.2 Fixed in 4.18.2 Patch available GHSA-v3vg-332r-mw99
- org.apache.camel:camel-pqc (Maven) Vendor— Affected 4.19.0 to before 4.20.0 Fixed in 4.20.0 Patch available GHSA-v3vg-332r-mw99
Remediation
- Fix · CNA Apache Camel PQC (Apache Software Foundation) Fixed in 4.20.0, 4.18.2
- Fix · GHSA-v3vg-332r-mw99 org.apache.camel:camel-pqc (Maven) Fixed in 4.18.2 Advisory →
- Fix · GHSA-v3vg-332r-mw99 org.apache.camel:camel-pqc (Maven) Fixed in 4.20.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat build of Apache Camel for Spring Boot 4
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40048
- 2026-10-03 Alias added: GHSA-v3vg-332r-mw99
- 2026-11-04 Fix available: Maven/org.apache.camel:[email protected] · GHSA-v3vg-332r-mw99
- 2026-11-04 3 new references · GHSA-v3vg-332r-mw99
References
Advisory 3
Other 9
- https://github.com/apache/camel/pull/22034
- https://github.com/apache/camel/pull/22495
- https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d
- https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c
- https://access.redhat.com/security/cve/CVE-2026-40048
- https://bugzilla.redhat.com/show_bug.cgi?id=2463176
- https://github.com/apache/camel
- https://issues.apache.org/jira/browse/CAMEL-23200
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json
More Apache Camel vulnerabilities
- TI-2026-76322 Unsafe deserialization in Apache Camel camel-hazelcast CVSS 4.0CRITICAL 10.0
- TI-2026-18973 Apache Camel: Camel-Keycloak: Cross-Realm Token Acceptance Bypass in KeycloakSecurityPolicy CVSS 3.1CRITICAL 9.1
- TI-2026-76339 Path traversal in Apache Camel azure-files component CVSS 3.1CRITICAL 9.1
- TI-2026-76330 Path traversal in Apache Camel FTP consumer escapes polled directory CVSS 3.1CRITICAL 9.1
- TI-2025-20435 Apache Camel: Camel Message Header Injection via Improper Filtering CVSS 3.1MEDIUM 5.6
- TI-2026-34899 Apache Camel: Camel-CXF Message Header Injection via Missing Inbound Filtering CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-40048 · CVE Program
- CVE-2026-40048 · NVD
- FIRST EPSS
- GHSA-v3vg-332r-mw99 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40048 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences