Vulnerabilities in pkg:maven/org.apache.livy/livy-server

PACKAGE
Advisory Identifier: GHSA-h84f-4ff9-8hc3
Advisory Summary

CVE-2025-66249 is a MODERATE (CVSS 6.3) unauthorized directory access vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Apache Livy libraries in the Maven ecosystem. The issue involves unauthorized directory access. Remediation is available by upgrading affected packages to version 0.9.0-incubating.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.livy/livy-server

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.livy/livy-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-h84f-4ff9-8hc3 CVE-2025-66249 MODERATE Apache Livy: Unauthorized directory access
GHSA-hm8x-rpgg-7855 CVE-2025-60012 MODERATE Apache Livy: Restrict file access
GHSA-74qp-233x-p5j8 CVE-2021-26544 MODERATE Apache Livy Cross-site scripting (XSS) in session names

CVE-2025-66249 at a Glance

CVE Identifier CVE-2025-66249
GHSA Identifier GHSA-h84f-4ff9-8hc3
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
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-66249

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-66249, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache Livy. This issue affects Apache Livy: from 0.3.0 before 0.9.0. The vulnerability can only be exploited with non-default Apache Livy Server settings. If the configuration value "livy.file.local-dir-whitelist" is set to a non-default value, the directory checking can be bypassed. Users are recommended to upgrade to version 0.9.0, which fixes the issue.

CVE-2025-66249 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.3.0-incubating
< 0.9.0-incubating
0.9.0-incubating

References

Frequently Asked Questions

What is CVE-2025-66249?
CVE-2025-66249 is a security vulnerability in Apache Livy involving Unauthorized directory access under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
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-66249?
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-66249?
CVE-2025-66249 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-66249?
CVE-2025-66249 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2025-66249?
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-h84f-4ff9-8hc3",
  "modified" : "2026-03-16T18:45:11Z",
  "published" : "2026-03-13T21:31:45Z",
  "aliases" : [ "CVE-2025-66249" ],
  "summary" : "Apache Livy: Unauthorized directory access",
  "details" : "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache Livy.\n\nThis issue affects Apache Livy: from 0.3.0 before 0.9.0.\n\nThe vulnerability can only be exploited with non-default Apache Livy Server settings. If the configuration value \"livy.file.local-dir-whitelist\" is set to a non-default value, the directory checking can be bypassed.\n\nUsers are recommended to upgrade to version 0.9.0, 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.3.0-incubating"
      }, {
        "fixed" : "0.9.0-incubating"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66249"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/incubator-livy"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/1xwphsfn4jbtym4k4o0zlvwfogwqwwc3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/03/12/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-16T18:45:11Z",
    "nvd_published_at" : "2026-03-13T19:53:52Z"
  }
}