Ranger
CVE-2025-59059
CRITICAL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 9.8. Apache Ranger manages access control for Hadoop ecosystem. |
| Exploit ScenarioDerived | Execute arbitrary code through Nashorn script engine in Ranger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
RCE in Apache Ranger <= 2.7.0 via NashornScriptEngineCreator. EPSS 0.42%.
Earlier versions of this analysis (1)
RCE in Apache Ranger via Nashorn.
RemediationAI
Update to Ranger > 2.7.0.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-94 code execution through Nashorn JavaScript engine.
Know when Ranger gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Remote Code Execution Vulnerability in NashornScriptEngineCreator is reported in Apache Ranger versions <= 2.7.0. Users are recommended to upgrade to version 2.8.0, which fixes this issue.
Executive ViewAI
A critical remote code execution vulnerability in Apache Ranger versions 2.7.0 and earlier allows unauthenticated attackers to execute arbitrary code on affected systems with a 9.8 CVSS severity rating. Organizations running vulnerable Ranger deployments face immediate risk of full system compromise, data exfiltration, and lateral movement into connected infrastructure.
Until patch is applied: (1) Implement strict network segmentation to limit Ranger access to authorized administrators only; (2) Deploy WAF rules blocking malicious NashornScriptEngineCreator payloads if Ranger is internet-exposed; (3) Disable or restrict NashornScriptEngineCreator functionality in Ranger configuration if business operations permit; (4) Enable enhanced logging and monitoring for authentication attempts and script execution activities; (5) Implement IP whitelisting at network perimeter for Ranger service access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Apache Ranger Security Flaws
View all 2The Policy Admin Tool in Apache Ranger before 0.5.0 allows remote authenticated users to bypass intended access restrict
Cross-site scripting (XSS) vulnerability in the Policy Admin Tool in Apache Ranger before 0.5.0 allows remote attackers
The Admin UI in Apache Ranger before 0.5.1 does not properly handle authentication requests that lack a password, which
Policy resource matcher in Apache Ranger before 0.7.1 ignores characters after '*' wildcard character - like my*test, te
Improper Neutralization of Formula Elements in Export CSV feature of Apache Ranger in Apache Ranger Version < 2.6.0. Rat
Apache Ranger 0.5.x before 0.5.2 allows remote authenticated users to bypass intended parent resource-level access restr
UnixAuthenticationService in Apache Ranger 1.2.0 was updated to correctly handle user input to avoid Stack-based buffer
SQL injection vulnerability in the policy admin tool in Apache Ranger before 0.5.3 allows remote authenticated administr
In Apache Ranger before 0.6.2, users with "keyadmin" role should not be allowed to change password for users with "admin
The Policy Admin Tool in Apache Ranger before 0.5.1 allows remote authenticated users to bypass intended access restrict
Policy import functionality in Apache Ranger 0.7.0 to 1.2.0 is vulnerable to a cross-site scripting issue. Rated medium
Apache Ranger before 0.6.3 policy engine incorrectly matches paths in certain conditions when policy does not contain wi
GHSA-c87w-642h-m97h
NVD
CVE.org
EPSS
Exploit-DB