CVE-2026-40048: Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager

Published Apr 26, 2026
·
Updated

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.

Affected Software

3 affected components
Apache Camel>=4.19.0<4.20.0, >=4.18.0<4.18.2
Apache Camel>=4.18.0<4.18.2
Apache Camel=4.19.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Camel (Camel-PQC) to a version that resolves this vulnerability.

    Fixed in 4.18.2Patch CVE-2026-40048
  2. Upgrade

    Upgrade Apache Camel (Camel-PQC) to a version that resolves this vulnerability.

    Fixed in 4.20.0Patch CVE-2026-40048

Event History

Apr 27, 2026
CVE Published
via MITRE·07:53 AM
Data Sourced
via MITRE·07:53 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·10:01 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40048?

CVE-2026-40048 has a high severity due to the risk of unsafe deserialization leading to potential remote code execution.

2

How do I fix CVE-2026-40048?

To fix CVE-2026-40048, update Apache Camel to version 4.20.0 or later.

3

Which versions of Apache Camel are affected by CVE-2026-40048?

CVE-2026-40048 affects Apache Camel versions from 4.18.0 to 4.20.0.

4

What are the potential risks associated with CVE-2026-40048?

The risks include exploitation through maliciously crafted key files, potentially leading to unauthorized code execution.

5

Is there a workaround for CVE-2026-40048?

A potential workaround is to avoid deserializing key files from untrusted sources until a fix is applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203