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
    • 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-2025-59059

CVE-2025-59059: Apache Ranger RCE Vulnerability

CVE-2025-59059 is a remote code execution vulnerability in Apache Ranger's NashornScriptEngineCreator affecting versions up to 2.7.0. This article covers the technical details, affected versions, and mitigation steps.

Published: March 6, 2026

CVE-2025-59059 Overview

A critical Remote Code Execution (RCE) vulnerability has been identified in the NashornScriptEngineCreator component of Apache Ranger. This vulnerability affects Apache Ranger versions 2.7.0 and earlier, allowing unauthenticated attackers to execute arbitrary code remotely on vulnerable systems. The flaw resides in improper code generation controls within the Nashorn JavaScript engine integration, which is used for policy evaluation and dynamic script execution in Apache Ranger.

Critical Impact

Unauthenticated remote attackers can achieve full system compromise through arbitrary code execution, potentially leading to complete confidentiality, integrity, and availability breaches across the affected Apache Ranger deployment and connected big data infrastructure.

Affected Products

  • Apache Ranger versions 2.7.0 and earlier
  • Systems utilizing NashornScriptEngineCreator for policy evaluation
  • Big data environments relying on Apache Ranger for access control

Discovery Timeline

  • 2026-03-03 - CVE-2025-59059 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2025-59059

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), commonly known as Code Injection. The flaw exists within the NashornScriptEngineCreator component of Apache Ranger, which provides JavaScript evaluation capabilities for dynamic policy processing. The Nashorn engine, originally designed to execute JavaScript code within the Java Virtual Machine (JVM), can be exploited when user-controllable input is passed to script evaluation functions without proper sanitization.

The vulnerability allows network-based exploitation without requiring authentication or user interaction. An attacker can craft malicious payloads that, when processed by the vulnerable Nashorn script engine, execute arbitrary Java code on the underlying server. Given Apache Ranger's role as a centralized security framework for Hadoop ecosystem access control, successful exploitation could grant attackers complete control over data access policies and the underlying system.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and sandboxing within the NashornScriptEngineCreator implementation. The Nashorn JavaScript engine provides direct access to Java classes and methods through its JavaScript-to-Java interoperability features. When script input is not properly sanitized or when the engine is not configured with appropriate security restrictions, attackers can leverage Java reflection and runtime execution capabilities to break out of the intended script sandbox and execute arbitrary system commands.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted requests to an Apache Ranger instance that trigger script evaluation through the vulnerable NashornScriptEngineCreator component. The malicious payload leverages Nashorn's Java interoperability to access dangerous classes such as java.lang.Runtime or java.lang.ProcessBuilder, enabling command execution on the host system.

The exploitation mechanism typically involves crafting JavaScript payloads that:

  1. Access Java runtime classes through Nashorn's Java.type() function
  2. Instantiate process execution objects
  3. Execute arbitrary system commands with the privileges of the Apache Ranger service account

For detailed technical information about this vulnerability, refer to the Apache Security Mailing List Thread and the OpenWall OSS-Security Discussion.

Detection Methods for CVE-2025-59059

Indicators of Compromise

  • Unexpected child processes spawned by the Apache Ranger Java process (e.g., /bin/sh, /bin/bash, cmd.exe)
  • Unusual network connections originating from the Ranger service to external IP addresses
  • Log entries showing JavaScript evaluation errors or suspicious script content in Ranger audit logs
  • Presence of reconnaissance commands or data exfiltration attempts in process monitoring

Detection Strategies

  • Monitor Apache Ranger logs for script execution patterns containing Java class references such as java.lang.Runtime, ProcessBuilder, or java.lang.reflect
  • Implement network intrusion detection rules to identify suspicious payloads targeting Ranger REST API endpoints
  • Deploy endpoint detection solutions that can identify Nashorn-based code injection attempts through behavioral analysis
  • Review Ranger policy evaluation logs for anomalous JavaScript content or unexpected API calls

Monitoring Recommendations

  • Enable verbose logging for Apache Ranger script evaluation components to capture potential exploitation attempts
  • Configure SIEM correlation rules to alert on combinations of Ranger service activity followed by suspicious process execution
  • Establish baseline behavior for Apache Ranger services and alert on deviations, particularly unexpected outbound connections or process spawning
  • Implement file integrity monitoring on Apache Ranger installation directories to detect post-exploitation modifications

How to Mitigate CVE-2025-59059

Immediate Actions Required

  • Upgrade Apache Ranger to version 2.8.0 or later, which contains the security fix for this vulnerability
  • If immediate patching is not possible, restrict network access to Apache Ranger admin interfaces to trusted networks only
  • Review and audit existing Ranger policies for any suspicious or unauthorized modifications
  • Implement network segmentation to limit the blast radius of potential compromise

Patch Information

Apache has released version 2.8.0 of Apache Ranger, which addresses this Remote Code Execution vulnerability in the NashornScriptEngineCreator component. Organizations are strongly recommended to upgrade to this version immediately. The official security advisory and patch details are available through the Apache Security Mailing List Thread.

Workarounds

  • Implement strict network access controls to limit exposure of Apache Ranger services to trusted internal networks only
  • Deploy a Web Application Firewall (WAF) with rules to inspect and block suspicious JavaScript-containing payloads targeting Ranger endpoints
  • Disable or restrict Nashorn script engine functionality if not required for operational purposes
  • Monitor and restrict the Apache Ranger service account privileges to minimize potential post-exploitation impact
bash
# Example: Restrict network access to Apache Ranger admin port
iptables -A INPUT -p tcp --dport 6080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 6080 -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 Ranger

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.29%

  • 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-94
  • Technical References
  • OpenWall OSS-Security Discussion
  • Vendor Resources
  • Apache Security Mailing List Thread
  • Related CVEs
  • CVE-2025-59060: Apache Ranger Auth Bypass Vulnerability

  • CVE-2024-45479: Apache Ranger SSRF Vulnerability

  • CVE-2021-40331: Apache Ranger Privilege Escalation Flaw
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