WaratekVRT Sign in

CVE-2026-40048 Apache Camel

Affected softwareApache Camel
Severity7.8 High CVSS 3.1 2 scores
Fixed in4.18.2, 4.20.0
WeaknessDeserialization of untrusted data (CWE-502)
Published27 Apr 2026
Updated26 Oct 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. The 1 repository below are public GitHub repositories with fewer than 5 stars.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 1 indexed, none at 5+ stars
  • EPSS 0.33% chance in 30 days

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Reproducer for CVE-2026-40048: Apache Camel camel-pqc FileBasedKeyLifecycleManager unsafe deserialization (RCE) 2026-07-08

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.
Candidate fix https://bugzilla.redhat.com/show_bug.cgi?id=2463176 : a Red Hat bug: the triage, which links onward to the fix

How to mitigate CVE-2026-40048

Upgrade Apache Camel to a release that fixes it: 4.18.2 or 4.20.0. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.8 HIGH v3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 7.8 HIGH CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CISA-ADP Secondary published
CVSS 3.1 7.8 HIGH CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H redhat-SADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.camel:camel-pqc 0 4.18.2 unbounded
org.apache.camel:camel-pqc 4.19.0 4.20.0 unbounded

Products and versions

2 products, 4 version entries
SourceVendorProductSchemeAffected versions
nvd apache camel generic ≥ 4.18.0 and < 4.18.2 · 4.19.0
osv org.apache.camel camel-pqc generic < 4.18.2 · ≥ 4.19.0 and < 4.20.0

References

URLTags
https://bugzilla.redhat.com/show_bug.cgi?id=2463176 bugzilla
https://github.com/apache/camel/pull/22034 WEB
https://github.com/apache/camel/pull/22495 WEB
https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d WEB
https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c WEB
https://access.redhat.com/security/cve/CVE-2026-40048 WEB
https://camel.apache.org/security/CVE-2026-40048.html WEB
https://github.com/apache/camel PACKAGE
https://issues.apache.org/jira/browse/CAMEL-23200 WEB
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json WEB

Timeline

Published2026-04-27By the CVE Program.
NVD record modified2026-10-26NVD's own last-modified date for this record.