CVE-2025-70952: Pf4j Path Traversal Vulnerability
HIGHCVE-2025-70952 is a HIGH path traversal vulnerability (CWE-23: Relative Path Traversal) affecting Pf4j libraries in the Maven ecosystem. The issue involves pf4j is vulnerable to path traversal or zip slip attack through improper handling of zip entry names. Remediation is available by upgrading affected packages to version 3.14.1.
CVE-2025-70952 at a Glance
How to Fix CVE-2025-70952
To remediate this vulnerability, upgrade all affected Pf4j dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.pf4j</groupId>
<artifactId>pf4j</artifactId>
<version>3.14.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.pf4j
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-70952, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.pf4j
Analyze the terminal output to locate any version of Pf4j in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.pf4j 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-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. In Pf4j, 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
CVE-2025-70952 Affected Pf4j Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.pf4j:pf4j
|
Maven |
< 3.14.1
|
3.14.1
|
References
Frequently Asked Questions
What is CVE-2025-70952?
Which Pf4j versions are affected?
What version fixes CVE-2025-70952?
Is pf4j affected?
What CWE is associated with CVE-2025-70952?
How can I check Maven dependencies for CVE-2025-70952?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5458-7hh9-v7p4",
"modified" : "2026-03-27T19:49:01Z",
"published" : "2026-03-25T21:30:35Z",
"aliases" : [ "CVE-2025-70952" ],
"summary" : "pf4j is vulnerable to Path Traversal or Zip Slip attack through improper handling of zip entry names ",
"details" : "pf4j before 20c2f80 has a path traversal vulnerability in the extract() function of Unzip.java, where improper handling of zip entry names can allow directory traversal or Zip Slip attacks, due to a lack of proper path normalization and validation.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.pf4j:pf4j"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-70952"
}, {
"type" : "WEB",
"url" : "https://github.com/pf4j/pf4j/issues/618"
}, {
"type" : "WEB",
"url" : "https://github.com/pf4j/pf4j/issues/623"
}, {
"type" : "WEB",
"url" : "https://github.com/pf4j/pf4j/commit/20c2f80089d1ea779e22c2de5f109a0bce4e1b14"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/weaver4VD/410f23adb24ef5f5077f021f4393e705"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pf4j/pf4j"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-23" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-27T19:49:00Z",
"nvd_published_at" : "2026-03-25T19:16:28Z"
}
}