Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryendpoint-software-vulnerability

Apache Camel Camel-PQC Unsafe Deserialization Enables Code Execution

Vulnerability Disclosure · 4 sources · Updated 5mo ago · First seen Apr 26, 2026

Apache Camel Camel-PQC Unsafe Deserialization Enables Code Execution

Apache disclosed CVE-2026-40048, an unsafe deserialization flaw in the Camel-PQC component of Apache Camel that can lead to arbitrary code execution. The vulnerability is in FileBasedKeyLifecycleManager, which deserializes <keyId>.key files with java.io.ObjectInputStream without ObjectInputFilter or class-loading restrictions, allowing malicious readObject() behavior to run before the data is cast to java.security.KeyPair. An attacker who can place a crafted file in the configured key directory—through path traversal, weak filesystem permissions, a compromised key provisioning pipeline, or a symlink attack—could execute code in the context of the Camel application.

The issue affects org.apache.camel:camel-pqc versions 4.19.0 before 4.20.0 and 4.18.0 before 4.18.2. Apache fixed the flaw by replacing ObjectInputStream-based key and metadata storage with PKCS#8 and X.509 SubjectPublicKeyInfo Base64 JSON encoding, and advised users to upgrade to 4.20.0 or 4.18.2 on the 4.18.x LTS line. Apache credited Andrea Cosentino of the Apache Software Foundation and Venkatraman Kumar of Securin with discovering the vulnerability.

Why it matters

Impact assessment

Apache Camel deployments using the Camel-PQC component are affected if they run versions 4.19.0 before 4.20.0 or 4.18.0 before 4.18.2 and allow attacker influence over the configured key directory. The impact is severe because successful exploitation yields arbitrary code execution in the security context of the Camel application, creating risk of service compromise, data exposure, downstream pivoting, and operational disruption.

The exposure is not indiscriminate internet-scale by itself; exploitation requires the attacker to place a crafted file in the key directory through another weakness such as path traversal, weak filesystem permissions, a compromised key provisioning pipeline, or a symlink attack. No confirmed in-the-wild exploitation is stated in the references.

Affected entities

  • Product: Apache Camel
  • Component: org.apache.camel:camel-pqc
  • Vulnerable class: FileBasedKeyLifecycleManager
  • Affected versions:
    • 4.19.0 before 4.20.0
    • 4.18.0 before 4.18.2

Business impact details

  • Arbitrary code execution in the Camel application context
  • Potential compromise of integration workloads and connected systems
  • Possible theft or manipulation of application data and cryptographic material
  • Potential service interruption if malicious payloads disrupt key lifecycle operations

Scope and exploitation conditions

  • Targeted exposure tied to deployments using Camel-PQC
  • Requires write access or write influence over the configured key directory
  • Listed enabling conditions:
    • Path traversal into the key directory
    • Misconfigured filesystem permissions
    • Compromised key provisioning pipeline
    • Symlink attack

Extracted facts

  • CVE: CVE-2026-40048
  • Severity stated by Apache advisory: High
  • Severity stated in oss-sec disclosure: Important
  • Internal tracking: CAMEL-23200
  • Finders: Andrea Cosentino (Apache Software Foundation), Venkatraman Kumar (Securin)
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Apr 26, 2026
  1. Apr 26, 20267mo ago

    oss-sec republishes Apache Camel CVE-2026-40048 disclosure

    An oss-sec post summarized CVE-2026-40048, describing the unsafe deserialization issue in Camel-PQC's FileBasedKeyLifecycleManager and reiterating that upgrading to Camel 4.20.0 or 4.18.2 mitigates the risk. The post did not introduce materially new incident details beyond Apache's advisory.

  2. Apr 26, 20267mo ago

    Apache publishes advisory for CVE-2026-40048

    Apache disclosed CVE-2026-40048 as a high-severity unsafe deserialization vulnerability in Camel-PQC that could allow arbitrary code execution if an attacker can write crafted serialized objects into the configured key directory. The advisory credited Andrea Cosentino of the Apache Software Foundation and Venkatraman Kumar of Securin for discovering the issue and urged users to upgrade.

  3. Apr 26, 20267mo ago

    Apache fixes CVE-2026-40048 in Camel-PQC releases

    Apache addressed an unsafe deserialization flaw in Camel-PQC's FileBasedKeyLifecycleManager by replacing ObjectInputStream-based key storage with PKCS#8 and X.509 SubjectPublicKeyInfo Base64 JSON encoding. The fix was released in Apache Camel versions 4.20.0 and 4.18.2, affecting vulnerable versions 4.19.0 before 4.20.0 and 4.18.0 before 4.18.2.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Apache Software Foundation
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.