The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40858

CVE-2026-40858: Apache Camel RCE Vulnerability

CVE-2026-40858 is a remote code execution vulnerability in Apache Camel's camel-infinispan component that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-40858 Overview

CVE-2026-40858 is an insecure deserialization vulnerability in the Apache Camel camel-infinispan component. The ProtoStream-based remote aggregation repository deserializes data read from a remote Infinispan cache using java.io.ObjectInputStream without applying any ObjectInputFilter. An attacker who can write to the Infinispan cache used by a Camel application can inject a crafted serialized Java object that, when read during normal aggregation repository operations such as get or recover, results in arbitrary code execution in the context of the application.

This vulnerability follows the same class of insecure deserialization issues previously addressed in CVE-2024-22369, CVE-2024-23114, and CVE-2026-25747.

Critical Impact

Attackers with write access to an Infinispan cache can achieve remote code execution by injecting malicious serialized Java objects, potentially leading to full system compromise.

Affected Products

  • Apache Camel versions 4.0.0 through 4.14.6
  • Apache Camel versions 4.15.0 through 4.18.1
  • Apache Camel version 4.19.0

Discovery Timeline

  • 2026-04-27 - CVE CVE-2026-40858 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-40858

Vulnerability Analysis

This vulnerability (CWE-502: Deserialization of Untrusted Data) exists in the camel-infinispan component's handling of remote aggregation repository data. The core issue stems from the use of Java's native ObjectInputStream class to deserialize data retrieved from a remote Infinispan cache without implementing any filtering mechanism.

When a Camel application uses the ProtoStream-based remote aggregation repository, it reads serialized objects from the Infinispan cache during standard operations like get() and recover(). Because no ObjectInputFilter is applied, any serialized Java object—including malicious gadget chains—will be deserialized and instantiated by the application.

An attacker who has obtained write access to the target Infinispan cache can exploit this by inserting a specially crafted serialized payload containing a gadget chain. When the Camel application subsequently reads this data during normal aggregation operations, the malicious object is deserialized, triggering arbitrary code execution with the privileges of the application.

Root Cause

The root cause is the absence of input validation during the deserialization process. The camel-infinispan component directly uses java.io.ObjectInputStream.readObject() to deserialize data from the remote Infinispan cache without implementing an ObjectInputFilter to restrict which classes can be deserialized. This allows any serializable class available on the application's classpath to be instantiated, enabling exploitation through known deserialization gadget chains.

Attack Vector

The attack requires network access and the ability to write to the Infinispan cache that the target Camel application uses for its aggregation repository. The attack flow consists of:

  1. Cache Access: The attacker must first gain write access to the remote Infinispan cache. This could be achieved through compromised credentials, misconfigured cache permissions, or exploitation of another vulnerability in the Infinispan infrastructure.

  2. Payload Injection: The attacker crafts a malicious serialized Java object using known deserialization gadget chains (such as those from ysoserial) and writes it to the cache with a key that will be read by the Camel application.

  3. Triggering Deserialization: When the Camel application performs a normal aggregation repository operation that reads the attacker-controlled entry, the malicious object is deserialized, executing arbitrary code in the application context.

The vulnerability requires low privileges (cache write access) and no user interaction to exploit. Once triggered, the attacker gains code execution with full access to the application's data and resources.

Detection Methods for CVE-2026-40858

Indicators of Compromise

  • Unexpected or anomalous entries in Infinispan cache logs indicating writes from unknown sources
  • Unusual process spawning or network connections originating from Camel application processes
  • Presence of known deserialization gadget chain classes in memory or application logs
  • Abnormal CPU or memory usage during aggregation repository operations
  • Error logs showing ClassNotFoundException or InvalidClassException for unexpected classes during deserialization

Detection Strategies

  • Implement application-level logging for all aggregation repository read operations to capture the classes being deserialized
  • Deploy runtime application self-protection (RASP) solutions capable of detecting deserialization attacks
  • Monitor Infinispan cache access patterns and alert on writes from unauthorized or unexpected sources
  • Use SentinelOne's behavioral AI to detect post-exploitation activities such as command execution or lateral movement

Monitoring Recommendations

  • Enable detailed audit logging on Infinispan cache servers to track all read and write operations
  • Implement network segmentation and monitor traffic between Camel applications and Infinispan caches
  • Configure alerts for any Java deserialization exceptions that may indicate blocked exploitation attempts
  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious process behavior on systems running affected Camel applications

How to Mitigate CVE-2026-40858

Immediate Actions Required

  • Upgrade Apache Camel to version 4.20.0, 4.18.2, or 4.14.7 depending on your release stream
  • Audit Infinispan cache access controls to ensure only authorized applications can write to caches used by Camel
  • Review network segmentation to restrict access to Infinispan infrastructure
  • Implement monitoring for suspicious cache operations and application behavior
  • Consider temporarily disabling the remote aggregation repository functionality if upgrade is not immediately possible

Patch Information

Apache has released patched versions that address this vulnerability by implementing proper ObjectInputFilter restrictions on deserialized data. Users should upgrade to the following versions based on their current release stream:

  • Version 4.20.0: Recommended for users on the latest release stream
  • Version 4.18.2: For users on the 4.18.x release stream
  • Version 4.14.7: For users on the 4.14.x LTS release stream

For detailed information on the commits that resolved this issue, refer to the Apache Camel CVE-2026-40858 Advisory and the associated JIRA ticket CAMEL-23322.

Workarounds

  • Restrict write access to Infinispan caches to only trusted, authenticated services until patching is possible
  • Implement network-level access controls to limit which systems can communicate with Infinispan servers
  • Consider switching to local aggregation repositories if remote caching is not strictly required
  • Apply Java security manager policies or use a JEP 290-compatible ObjectInputFilter at the JVM level to restrict deserialization
bash
# Example: Restrict JVM-wide deserialization using JEP 290 filter
# Add to JVM startup arguments
java -Djdk.serialFilter="!*" -jar your-camel-application.jar

# More permissive filter allowing specific packages
java -Djdk.serialFilter="org.apache.camel.**;java.lang.*;java.util.*;!*" -jar your-camel-application.jar

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Camel

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Vendor Resources
  • Apache Camel CVE-2026-40858 Advisory
  • Related CVEs
  • CVE-2026-40453: Apache Camel RCE Vulnerability

  • CVE-2026-40048: Apache Camel RCE Vulnerability

  • CVE-2026-40473: Apache Camel RCE Vulnerability

  • CVE-2026-40860: Apache Camel JMS RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English