Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-59059: CWE-94 Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Ranger

0
Critical
VulnerabilityCVE-2025-59059cvecve-2025-59059cwe-94
Published: Tue Mar 03 2026 (03/03/2026, 10:44:47 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Ranger

Description

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.

AI-Powered Analysis

AILast updated: 03/03/2026, 11:17:49 UTC

Technical Analysis

CVE-2025-59059 is a critical remote code execution (RCE) vulnerability identified in the Apache Ranger project, specifically within the NashornScriptEngineCreator component. The root cause is improper control over the generation of code, classified under CWE-94 (Improper Control of Generation of Code). Apache Ranger is a widely adopted open-source framework for centralized security management in big data ecosystems, providing fine-grained access control and auditing capabilities. The vulnerability affects all versions up to and including 2.7.0. An attacker can exploit this flaw remotely without requiring authentication or user interaction by injecting malicious code that the NashornScriptEngineCreator executes. This leads to arbitrary code execution on the server hosting Apache Ranger, potentially allowing full system compromise, data exfiltration, or disruption of services. Although no public exploits have been reported yet, the vulnerability's nature and the critical role of Apache Ranger in enterprise environments make it a high-risk issue. The Apache Software Foundation has released version 2.8.0 to remediate this vulnerability. The absence of a CVSS score necessitates an independent severity assessment based on the vulnerability's characteristics and potential impact.

Potential Impact

The impact of CVE-2025-59059 is severe for organizations using Apache Ranger to secure their big data environments. Successful exploitation allows remote attackers to execute arbitrary code on the Ranger server without authentication, leading to complete system compromise. This can result in unauthorized access to sensitive data, manipulation or deletion of security policies, disruption of data governance, and potential lateral movement within the network. Given Apache Ranger's role in enforcing security policies across Hadoop, Hive, HBase, and other big data components, this vulnerability could undermine the entire data security posture of an organization. Enterprises relying on Ranger for compliance and auditing may face regulatory and reputational damage if exploited. The lack of known exploits in the wild provides a window for mitigation, but the risk of targeted attacks remains high, especially from advanced persistent threat actors seeking to exploit big data infrastructure.

Mitigation Recommendations

To mitigate CVE-2025-59059, organizations should immediately upgrade Apache Ranger to version 2.8.0 or later, where the vulnerability is fixed. Until the upgrade is applied, restrict network access to the Ranger server to trusted administrators only and monitor logs for unusual script execution or access patterns related to the NashornScriptEngineCreator. Implement network segmentation to isolate Ranger from less trusted networks and enforce strict firewall rules. Review and harden Ranger configurations, disabling any unnecessary scripting features if possible. Employ intrusion detection and prevention systems (IDPS) to detect anomalous behavior indicative of code injection attempts. Conduct regular audits of Ranger policies and access logs to identify potential unauthorized changes. Additionally, ensure that all big data platform components integrated with Ranger are up to date and follow security best practices to limit the blast radius of any compromise.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2025-09-08T18:36:43.801Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69a6bff6d1a09e29cbfe3b21

Added to database: 3/3/2026, 11:03:18 AM

Last enriched: 3/3/2026, 11:17:49 AM

Last updated: 3/4/2026, 8:13:59 AM

Views: 23

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses