CVE-2025-60012: Apache Livy Restrict File Access Vulnerability

MODERATE
Advisory Identifier: GHSA-hm8x-rpgg-7855
CVSS 6.3
CWE-20
Published
Advisory Summary

CVE-2025-60012 is a MODERATE (CVSS 6.3) restrict file access vulnerability (CWE-20: Improper Input Validation) affecting Apache Livy libraries in the Maven ecosystem. The issue involves restrict file access. Remediation is available by upgrading affected packages to version 0.9.0-incubating.

CVE-2025-60012 at a Glance

CVE Identifier CVE-2025-60012
GHSA Identifier GHSA-hm8x-rpgg-7855
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache Livy
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-60012

To remediate this vulnerability, upgrade all affected Apache Livy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.livy:livy-server fixed: 0.9.0-incubating
<dependency>
    <groupId>org.apache.livy</groupId>
    <artifactId>livy-server</artifactId>
    <version>0.9.0-incubating</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.livy

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-60012, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.livy

Analyze the terminal output to locate any version of Apache Livy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0-incubating), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.livy command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache Livy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Malicious configuration can lead to unauthorized file access in Apache Livy. This issue affects Apache Livy 0.7.0 and 0.8.0 when connecting to Apache Spark 3.1 or later. A request that includes a Spark configuration value supported from Apache Spark version 3.1 can lead to users gaining access to files they do not have permissions to. For the vulnerability to be exploitable, the user needs to have access to Apache Livy's REST or JDBC interface and be able to send requests with arbitrary Spark configuration values. Users are recommended to upgrade to version 0.9.0 or later, which fixes the issue.

CVE-2025-60012 Affected Apache Livy Versions

1 component(s)
Fixed Versions:
0.9.0-incubating
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.livy:livy-server
Maven
≥ 0.7.0-incubating
< 0.9.0-incubating
0.9.0-incubating

References

Frequently Asked Questions

What is CVE-2025-60012?
CVE-2025-60012 is a security vulnerability in Apache Livy involving Restrict file access under CWE-20: Improper Input Validation.
Which Apache Livy versions are affected?
Affected versions include releases prior to 0.9.0-incubating across affected packages: org.apache.livy:livy-server.
What version fixes CVE-2025-60012?
Upgrading to 0.9.0-incubating (or the latest patched release for your respective branch) resolves the vulnerability.
Is livy-server affected?
Yes, org.apache.livy:livy-server is affected in releases prior to 0.9.0-incubating. Upgrade your dependency to 0.9.0-incubating or later.
What is the CVSS score of CVE-2025-60012?
CVE-2025-60012 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-60012?
CVE-2025-60012 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2025-60012?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.livy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hm8x-rpgg-7855",
  "modified" : "2026-03-16T18:44:51Z",
  "published" : "2026-03-13T21:31:45Z",
  "aliases" : [ "CVE-2025-60012" ],
  "summary" : "Apache Livy: Restrict file access ",
  "details" : "Malicious configuration can lead to unauthorized file access in Apache Livy.\n\nThis issue affects Apache Livy 0.7.0 and 0.8.0 when connecting to Apache Spark 3.1 or later.\n\nA request that includes a Spark configuration value supported from Apache Spark version 3.1 can lead to users gaining access to files they do not have permissions to.\n\nFor the vulnerability to be exploitable, the user needs to have access to Apache Livy's REST or JDBC interface and be able to send requests with arbitrary Spark configuration values.\n\nUsers are recommended to upgrade to version 0.9.0 or later, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.livy:livy-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7.0-incubating"
      }, {
        "fixed" : "0.9.0-incubating"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-60012"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/incubator-livy"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/gpc85fwrgrbglpk9gm8tmcjzqnctx64w"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/03/12/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-16T18:44:51Z",
    "nvd_published_at" : "2026-03-13T19:53:52Z"
  }
}