CVE-2026-40048: Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager
CVE-2026-40048 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS base score
- 7.8 (Apache), 7.8 (Red Hat)
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H· base score 7.8, scored by CISA-ADPAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-502 Deserialization of Untrusted Data
- EPSS
- 0.51% chance of exploitation in the next 30 days (36th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- Fixed releases
- Apache: 4.20.0, 4.18.2
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-40048; each belongs to its advisory, not to every product listed. How records are collected and checked.
Am I affected by CVE-2026-40048?
You are affected if you run Apache Camel at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache: Apache Camel PQC 4.19.0 before 4.20.0 | 4.20.0 |
| Apache: Apache Camel PQC 4.18.0 before 4.18.2 | 4.18.2 |
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.
Text from the CVE.org record (apache).
How do I fix CVE-2026-40048?
Upgrade to a fixed release named by the vendor:
- Apache: 4.20.0, 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. (Apache)
- For users on the 4.18.x LTS releases stream, upgrade to 4.18.2. (Apache)
- Red Hat rates this important; a fix erratum may not be out yet — apply the RHSA as soon as it publishes. (Red Hat)
Vendor advisories for CVE-2026-40048
Apache
3 advisories- Advisory severityCritical9.8
Critical [CVE-2026-40048 +2] Deserialization of Untrusted Data vulnerability in Apache Camel PQC Component
CVE-2026-43867Source published Source updated
This bulletin covers 3 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Deserialization of Untrusted Data vulnerability in Apache Camel PQC Component. The camel-pqc component persists post-quantum key metadata (KeyMetadata) through pluggable KeyLifecycleManager implementations. AwsSecretsManagerKeyLifecycleManager.deserializeMetadata() reads that metadata back from the configured AWS Secrets Manager secret by Base64-decoding the stored value and deserializing it with a raw java.io.ObjectInputStream.readObject() and no ObjectInputFilter or class allow-list; the cast to KeyMetadata happens only after readObject() returns, so any readObject() side effects in a crafted object run before the type check. A principal who can write to the AWS Secrets Manager secret that holds this metadata (requiring secretsmanager:PutSecretValue on that secret) could store a…
- Affected products in this advisory
- Apache Camel PQC
- Source-reported affected versions
- 4.18.0 through 4.18.3
- 4.19.0 through 4.21.0.
- Source-reported fixed versions
- 4.21.0
- 4.18.3
- Mitigation guidance
- Users are recommended to upgrade to version 4.21.0, which fixes the issue.
- If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.3.
- Workarounds
- For deployments that cannot upgrade immediately, restrict write access to the AWS Secrets Manager secret that holds the camel-pqc key metadata so that only the application’s own identity holds secretsmanager:PutSecretValue on it (least-privilege IAM), and keep the PQC key material in a secret separate from any data that less-trusted principals can write.
- Advisory severityHigh8.8
High [CVE-2026-40048 +1] Deserialization of Untrusted Data vulnerability in Apache Camel PQC component
CVE-2026-46590Source published Source updated
This bulletin covers 2 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Deserialization of Untrusted Data vulnerability in Apache Camel PQC component. The camel-pqc component persists post-quantum key metadata (KeyMetadata) through pluggable KeyLifecycleManager implementations. HashicorpVaultKeyLifecycleManager and AwsSecretsManagerKeyLifecycleManager read that metadata back from the configured secret backend by deserializing a Base64-wrapped value with a raw java.io.ObjectInputStream.readObject() and no ObjectInputFilter or class allow-list; the cast to KeyMetadata happens only after readObject() returns, so any readObject() side effects in a crafted object run before the type check. The same unfiltered legacy-migration read also remained in FileBasedKeyLifecycleManager (for the stored KeyPair and KeyMetadata). A principal who can write to the…
- Affected products in this advisory
- Apache Camel PQC
- Source-reported affected versions
- 4.18.0 through 4.18.3
- 4.19.0 through 4.21.0.
- Source-reported fixed versions
- 4.21.0
- 4.18.3
- Mitigation guidance
- Users are recommended to upgrade to version 4.21.0, which fixes the issue.
- If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.3.
- Workarounds
- For deployments that cannot upgrade immediately, restrict write access to the key backend so that only the application's own identity can write the camel-pqc secrets (least-privilege HashiCorp Vault policies and secretsmanager:PutSecretValue IAM), and keep the PQC key material in a backend separate from any data that less-trusted principals can write.
- Advisory severityHigh7.8
High [CVE-2026-40048] Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager
CVE-2026-40048Source published Source updated
The Camel-PQC FileBasedKeyLifecycleManager class deserializes the contents of `.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…
- Affected products in this advisory
- Apache Camel
- Source-reported affected versions
- Apache Camel PQC 4.19.0 before 4.20.0
- Apache Camel PQC 4.18.0 before 4.18.2
- Source-reported fixed versions
- 4.20.0
- 4.18.2
- Mitigation guidance
- 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.
Red Hat
1 advisory- Advisory severityHigh7.8
High [CVE-2026-40048] Arbitrary code execution via insecure deserialization of crafted key files
CVE-2026-40048Source published
Arbitrary code execution via insecure deserialization of crafted key files. Red Hat rates this important (CVSS 7.8). Weakness: CWE-502. No fix erratum has been published yet; monitor the Red Hat CVE page and apply the RHSA when released.
- Related products — impact not confirmed
- Red Hat Enterprise Linux
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- Red Hat rates this important; a fix erratum may not be out yet — apply the RHSA as soon as it publishes.
References
- CVE-2026-40048 recordCVE.org
- CVE-2026-40048 detailNVD
- camel.apache.org/security/CVE-2026-40048.htmlvendor-advisory
Timeline
- First vendor advisory listed by VulniPulse
- CVE record published
- CVE record last updated
More Apache advisories
CVE-2026-46590Jul 6, 2026Deserialization of Untrusted Data vulnerability in Apache Camel PQC componentCVE-2026-140880Dec 1, 2026Apache Karaf: Incorrect Authorization vulnerability in the config serviceCVE-2026-134135Dec 1, 2026Apache TinkerPop: gremlin-server: Unsafe Deserialization in GraphSON and GraphBinaryCVE-2026-74249Dec 1, 2026Apache TinkerPop denial of serviceCVE-2026-90640Dec 1, 2026Apache OpenOffice: Local file disclosure via SVG and HTML file:// referencesCVE-2026-120351Nov 30, 2026Apache Airflow: Asset events API discloses Dag runs of Dags the user is not
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).