CVE-2026-40048
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceApache Camel's FileBasedKeyLifecycleManager deserializes Java key files using ObjectInputStream without any filter, allowing attackers who can write to the key directory to inject malicious serialized objects that execute arbitrary code during deserialization before the type check completes.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 4.18.0, < 4.18.2= 4.19.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Apache Camel versionRun 'mvn dependency:tree' or check your dependency management to find the camel-core version. Also check pom.xml or build.gradle for the Camel version. On running systems, check the logs for 'Apache Camel' startup messages which display the version.Affected if Version is 4.18.0 through 4.18.1 (inclusive), or exactly 4.19.0
-
Identify FileBasedKeyLifecycleManager usageSearch your codebase and configuration files for 'FileBasedKeyLifecycleManager' class references. Check XML, YAML, or Java configuration where security keys are managed. Review any route definitions or camel-context XML files for key management components.Affected if FileBasedKeyLifecycleManager is configured or referenced in your Camel application
-
Verify key directory location and permissionsLocate the key directory used by FileBasedKeyLifecycleManager (check your configuration for the key directory path). On Linux/Unix, run 'ls -la <key_directory_path>' to check permissions. On Windows, right-click the folder, go to Properties > Security to view write permissions.Affected if The key directory exists and is writable by users other than the intended system account (especially by untrusted users or services)
-
Check for Java deserialization filtersSearch for 'ObjectInputFilter' or 'ObjectInputStream' usage in the Camel-related code. Check JVM arguments for '-Djdk.serialFilter=' settings. Review any custom ObjectInputStream implementations in your key management code.Affected if No deserialization filter is configured, or the existing filter allows arbitrary classes (not restricted to expected KeyPair types)
Your environment is affected if you run a vulnerable Camel version (4.18.0-4.18.1 or 4.19.0), use FileBasedKeyLifecycleManager, and the key directory is writable by an attacker who could inject malicious serialized objects.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.18.2
Upgrade Apache Camel to version 4.20.0 (or 4.18.2 for LTS) to replace unsafe ObjectInputStream deserialization with standard PKCS#8/X.509 encoding; also audit key directory permissions to prevent unauthorized write access.
Camel 4.18.2 (for 4.18.x users) or Camel 4.20.0 (for 4.19.x users)
- 1. Identify the Camel version currently in use by checking your project dependencies (Maven pom.xml, Gradle build.gradle, or application libraries)
- 2. If using Camel 4.18.0 or 4.18.1, plan upgrade to version 4.18.2
- 3. If using Camel 4.19.0, plan upgrade to version 4.20.0
- 4. Before upgrading, review the Camel 4.20.0 release notes for any breaking changes compared to your current version
- 5. Update your dependency version in your build configuration (e.g., change org.apache.camel:camel-dependencies version to 4.18.2 or 4.20.0)
- 6. Rebuild and test your application to ensure compatibility with the new version
- 7. Verify the fix: the vulnerability is resolved in 4.18.2 and 4.20.0 by replacing ObjectInputStream-based serialization with PKCS#8/X.509 standard formats
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,472.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40048 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40048 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data