Apache Software Foundation Apache Camel PQC
Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.19.0, < 4.20.0
- >= 4.18.0, < 4.18.2
Fixed in 4.20.0, 4.18.2
Mitigation
Upgrade Apache Camel PQC to 4.20.0 or 4.18.2 or later.
References
- Vendor advisory camel.apache.org/security/CVE-2026-40048.html
Timeline
Days relative to CVE publicationFirst public PoC 72 days after publication; not in CISA KEV. First PoC: oscerd/CVE-2026-40048 (created 8 Jul 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| oscerd/CVE-2026-40048 | 8 Jul 2026 +72 d | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| oscerd/CVE-2026-46590 | 15 Jul 2026 +79 d | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /exploit/trigger
- Ports
- 8080
- Seen in
- 1 repo: oscerd/CVE-2026-40048
- Evidence
- oscerd/CVE-2026-40048/README.md:79
POST /exploit/inject
- Body markers
@payload.b64intext/plain- Ports
- 8080
- Seen in
- 1 repo: oscerd/CVE-2026-40048
- Evidence
- oscerd/CVE-2026-40048/README.md:71
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/exploit/trigger(?:[?#].*)?$
(?i)^/exploit/inject(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-40048 Apache Software Foundation Apache Camel PQC exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/exploit/trigger"; reference:url,poc.griffinguard.io/cve/CVE-2026-40048; classtype:web-application-attack; sid:9059608; rev:1;)
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-40048 Apache Software Foundation Apache Camel PQC exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/exploit/inject"; http.request_body; content:"@payload.b64"; reference:url,poc.griffinguard.io/cve/CVE-2026-40048; classtype:web-application-attack; sid:9843661; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache Camel PQC exploit attempt (CVE-2026-40048)
id: gg-pocmon-cve-2026-40048-9059608
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-40048. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-40048
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/exploit/trigger'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.40048
title: Apache Software Foundation Apache Camel PQC exploit attempt (CVE-2026-40048)
id: gg-pocmon-cve-2026-40048-9843661
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-40048. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-40048
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/exploit/inject'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.40048