Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-25167

CVE-2022-25167: Apache Flume RCE Vulnerability

CVE-2022-25167 is a remote code execution flaw in Apache Flume versions 1.4.0 through 1.9.0 affecting JMS Source configurations with JNDI LDAP. This article covers technical details, affected versions, and mitigations.

Published: February 11, 2026

CVE-2022-25167 Overview

CVE-2022-25167 is a critical remote code execution (RCE) vulnerability affecting Apache Flume versions 1.4.0 through 1.9.0. The vulnerability exists in the JMS Source component when configured to use a JNDI LDAP data source URI. An attacker who controls the target LDAP server can exploit this flaw to execute arbitrary code on the affected system, potentially leading to complete system compromise.

Critical Impact

This JNDI injection vulnerability allows unauthenticated attackers to achieve remote code execution on vulnerable Apache Flume instances when the JMS Source is configured with an attacker-controlled LDAP server URI.

Affected Products

  • Apache Flume versions 1.4.0 through 1.9.0
  • Systems using JMS Source with JNDI LDAP data source configuration
  • Environments where attackers can influence LDAP server targets

Discovery Timeline

  • 2022-06-14 - CVE-2022-25167 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-25167

Vulnerability Analysis

This vulnerability is a classic JNDI injection attack vector, similar to the widely publicized Log4Shell vulnerability class. When Apache Flume's JMS Source component processes configuration that includes a JNDI LDAP data source URI, it performs a JNDI lookup without properly restricting the protocols that can be used. If an attacker has control over the target LDAP server referenced in this configuration, they can serve a malicious Java object that gets deserialized and executed on the Flume server.

The vulnerability stems from improper input validation (CWE-20) where the application fails to restrict JNDI lookups to safe protocols. This allows attackers to leverage LDAP references to load and execute arbitrary Java classes from remote locations, resulting in remote code execution with the privileges of the Flume process.

Root Cause

The root cause of CVE-2022-25167 lies in the unrestricted JNDI lookup functionality within Apache Flume's JMS Source component. Prior to the fix, Flume did not limit which protocols could be used in JNDI lookups, allowing dangerous protocols like LDAP and RMI to be exploited for remote class loading. The fix addresses this by restricting JNDI to only allow the java protocol or no protocol at all, preventing attackers from using external protocols to load malicious code.

Attack Vector

The attack requires the following conditions to be met:

  1. The target Apache Flume instance must be configured to use a JMS Source with a JNDI LDAP data source URI
  2. The attacker must have control over the LDAP server referenced in the configuration, either by compromising an existing server or by manipulating the configuration to point to an attacker-controlled server
  3. Once the Flume instance connects to the malicious LDAP server, the attacker can return a reference to a malicious Java class that will be loaded and executed

The attack is network-based and requires no authentication or user interaction, making it highly exploitable in environments where these conditions can be satisfied. The vulnerability allows attackers to potentially gain full control of the affected system with the same privileges as the Flume service.

Detection Methods for CVE-2022-25167

Indicators of Compromise

  • Unusual outbound LDAP connections from Apache Flume servers to unexpected external IP addresses
  • Suspicious Java class loading activity from remote LDAP or RMI servers
  • Unexpected child processes spawned by the Flume Java process
  • Network connections to known malicious LDAP servers associated with JNDI exploitation campaigns

Detection Strategies

  • Monitor Apache Flume configuration files for JMS Source entries with LDAP JNDI URIs pointing to untrusted servers
  • Implement network monitoring to detect LDAP traffic originating from Flume servers to non-standard destinations
  • Deploy endpoint detection and response (EDR) solutions capable of detecting JNDI exploitation patterns
  • Review Java process behavior for anomalous class loading from external sources

Monitoring Recommendations

  • Enable detailed logging for Apache Flume JMS Source connections and JNDI lookups
  • Configure alerts for any LDAP connections initiated by Flume processes to external IP ranges
  • Monitor for signs of post-exploitation activity such as reverse shells, credential harvesting, or lateral movement
  • Implement network segmentation to limit LDAP traffic from Flume servers to only authorized directory services

How to Mitigate CVE-2022-25167

Immediate Actions Required

  • Upgrade Apache Flume to version 1.10.0 or later, which includes the fix for this vulnerability
  • Review all Flume configurations to identify any JMS Source components using JNDI LDAP data source URIs
  • Temporarily disable or reconfigure JMS Sources that rely on LDAP JNDI lookups until patching is complete
  • Implement network-level controls to restrict outbound LDAP connections from Flume servers

Patch Information

The vulnerability is fixed in Apache Flume by limiting JNDI to allow only the use of the java protocol or no protocol at all. Organizations should upgrade to Apache Flume version 1.10.0 or later. For detailed information about the fix, refer to Apache JIRA Issue FLUME-3416.

Additional resources:

  • Openwall OSS Security Discussion
  • Apache Mailing List Thread

Workarounds

  • If immediate patching is not possible, disable JMS Source components that use JNDI LDAP URIs until the upgrade can be performed
  • Implement strict network egress filtering to block outbound LDAP, LDAPS, and RMI connections from Flume servers to untrusted destinations
  • Use a Web Application Firewall (WAF) or network intrusion prevention system (IPS) to detect and block JNDI exploitation attempts
  • Consider isolating vulnerable Flume instances in network segments with restricted external connectivity
bash
# Example: Network-level mitigation using iptables to block outbound LDAP
# Block outbound LDAP (port 389) and LDAPS (port 636) traffic from Flume servers
iptables -A OUTPUT -p tcp --dport 389 -m owner --uid-owner flume -j DROP
iptables -A OUTPUT -p tcp --dport 636 -m owner --uid-owner flume -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Flume

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability11.55%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Technical References
  • Openwall OSS Security Discussion

  • Apache Mailing List Thread
  • Vendor Resources
  • Apache JIRA Issue FLUME-3416
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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