CVE-2026-40048: Camel pqc Camel-PQC Vulnerable To Deserialization Of Vulnerability

HIGH
Advisory Identifier: GHSA-v3vg-332r-mw99
CVSS 7.8
CWE-502
Published
Advisory Summary

CVE-2026-40048 is a HIGH (CVSS 7.8) camel-pqc vulnerable to deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Camel pqc libraries in the Maven ecosystem. The issue involves camel-pqc vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 4.18.2.

CVE-2026-40048 at a Glance

CVE Identifier CVE-2026-40048
GHSA Identifier GHSA-v3vg-332r-mw99
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Camel pqc
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2026-40048

To remediate this vulnerability, upgrade all affected Camel pqc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.camel:camel-pqc fixed: 4.18.2
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-pqc</artifactId>
    <version>4.18.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.camel

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-40048, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.camel

Analyze the terminal output to locate any version of Camel pqc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.18.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Camel pqc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-40048 Affected Camel pqc Versions

1 component(s)
Fixed Versions:
4.18.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-pqc
Maven
< 4.18.2
4.18.2

References

Frequently Asked Questions

What is CVE-2026-40048?
CVE-2026-40048 is a security vulnerability in Camel pqc involving Camel-PQC Vulnerable to Deserialization of Untrusted Data under CWE-502: Deserialization of Untrusted Data.
Which Camel pqc versions are affected?
Affected versions include releases prior to 4.18.2 across affected packages: org.apache.camel:camel-pqc.
What version fixes CVE-2026-40048?
Upgrading to 4.18.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-pqc affected?
Yes, org.apache.camel:camel-pqc is affected in releases prior to 4.18.2. Upgrade your dependency to 4.18.2 or later.
What is the CVSS score of CVE-2026-40048?
CVE-2026-40048 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-40048?
CVE-2026-40048 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2026-40048?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v3vg-332r-mw99",
  "modified" : "2026-05-05T21:18:38Z",
  "published" : "2026-04-27T09:34:38Z",
  "aliases" : [ "CVE-2026-40048" ],
  "summary" : "Camel-PQC Vulnerable to Deserialization of Untrusted Data",
  "details" : "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.\n\nThis issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2.\n\nUsers 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-pqc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.18.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40048"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/22034"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/22495"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2026-40048.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-23200"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/04/26/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T21:18:38Z",
    "nvd_published_at" : "2026-04-27T09:16:01Z"
  }
}