Arbitrary Code Injection Affecting org.apache.ranger:ranger-plugins-common package, versions [,2.8.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.24% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHERANGER-15426392
  • published5 Mar 2026
  • disclosed3 Mar 2026
  • creditchengtianyi

Introduced: 3 Mar 2026

CVE-2025-59059  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.apache.ranger:ranger-plugins-common to version 2.8.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection through the SCRIPT_SAFE_PREEXEC definition in RangerRequestScriptEvaluator. An attacker can execute arbitrary OS commands by invoking scripts that rebuild the script context/engine (e.g., via loadWithNewGlobal) and re-enable java.lang.Runtime.

CVSS Base Scores

version 4.0
version 3.1