CVE-2025-67030: Plexus utils Path Traversal Vulnerability

HIGH
Advisory Identifier: GHSA-6fmv-xxpf-w3cw
CWE-22
Published
Advisory Summary

CVE-2025-67030 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Plexus utils libraries in the Maven ecosystem. The issue involves plexus-utils has a directory traversal vulnerability in its extractfile method. Remediation is available by upgrading affected packages to version 4.0.3, 3.6.1.

CVE-2025-67030 at a Glance

CVE Identifier CVE-2025-67030
GHSA Identifier GHSA-6fmv-xxpf-w3cw
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Plexus utils
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-67030

To remediate this vulnerability, upgrade all affected Plexus utils 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.codehaus.plexus:plexus-utils fixed: 4.0.3
<dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-utils</artifactId>
    <version>4.0.3</version>
</dependency>
org.codehaus.plexus:plexus-utils fixed: 3.6.1
<dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-utils</artifactId>
    <version>3.6.1</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.codehaus.plexus

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.codehaus.plexus

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

Note: The mvn dependency:tree -Dincludes=org.codehaus.plexus 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 Plexus utils, 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

Directory Traversal vulnerability in the extractFile method of org.codehaus.plexus.util.Expand in plexus-utils before 6d780b3378829318ba5c2d29547e0012d5b29642. This allows an attacker to execute arbitrary code

CVE-2025-67030 Affected Plexus utils Versions

2 component(s)
Fixed Versions:
4.0.33.6.1
Product / Package Ecosystem Affected Versions Fixed Version
org.codehaus.plexus:plexus-utils
Maven
≥ 4.0.0
< 4.0.3
4.0.3
org.codehaus.plexus:plexus-utils
Maven
< 3.6.1
3.6.1

References

Frequently Asked Questions

What is CVE-2025-67030?
CVE-2025-67030 is a security vulnerability in Plexus utils involving Plexus-Utils has a Directory Traversal vulnerability in its extractFile method under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Plexus utils versions are affected?
Affected versions include releases prior to 4.0.3, 3.6.1 across affected packages: org.codehaus.plexus:plexus-utils.
What version fixes CVE-2025-67030?
Upgrading to 4.0.3, 3.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is plexus-utils affected?
Yes, org.codehaus.plexus:plexus-utils is affected in releases prior to 4.0.3, 3.6.1. Upgrade your dependency to 4.0.3, 3.6.1 or later.
What CWE is associated with CVE-2025-67030?
CVE-2025-67030 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-67030?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.codehaus.plexus'. 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-6fmv-xxpf-w3cw",
  "modified" : "2026-04-08T23:18:35Z",
  "published" : "2026-03-25T18:31:55Z",
  "aliases" : [ "CVE-2025-67030" ],
  "summary" : "Plexus-Utils has a Directory Traversal vulnerability in its extractFile method ",
  "details" : "Directory Traversal vulnerability in the extractFile method of org.codehaus.plexus.util.Expand in plexus-utils before 6d780b3378829318ba5c2d29547e0012d5b29642. This allows an attacker to execute arbitrary code",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.codehaus.plexus:plexus-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.codehaus.plexus:plexus-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67030"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codehaus-plexus/plexus-utils/issues/294"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codehaus-plexus/plexus-utils/pull/295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codehaus-plexus/plexus-utils/pull/296"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codehaus-plexus/plexus-utils/commit/6d780b3378829318ba5c2d29547e0012d5b29642"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/weaver4VD/3216dac645220f8c9b488362f61241ec"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/codehaus-plexus/plexus-utils"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/codehaus-plexus/plexus-utils/releases/tag/plexus-utils-4.0.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-27T19:40:25Z",
    "nvd_published_at" : "2026-03-25T18:16:25Z"
  }
}