CVE-2025-70952

Published Mar 25, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

pf4j versions before commit 20c2f800 contain a path‑traversal vulnerability in the Unzip.extract method. Improper handling of zip entry names allows a malicious archive to write files outside the intended extraction directory, potentially overwriting existing files or placing files in arbitrary locations. This weakness is identified as CWE‑22 and is quantified with a CVSS v3.1 score of 7.5, indicating high severity.

Affected Systems

The vulnerability affects all releases of the pf4j framework that use the Unzip helper prior to commit 20c2f800. Applications or services that employ pf4j for plugin or extension installation and rely on its unzip functionality for handling ZIP archives are at risk. Versions newer than this commit are not affected.

Risk and Exploitability

The EPSS score is below 1 %, and the vulnerability is not included in CISA’s KEV catalog, suggesting a low current exploitation probability. The likely attack vector is when an attacker can supply a malicious ZIP file to a component that invokes pf4j’s unzip logic, such as during plugin upload or extension installation. The exploit would require write access to the base extraction directory; success could allow modification of the file system as the application runs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pf4j to a version containing commit 20c2f800 or newer.
  • If an upgrade is unavailable, add path validation to ensure extracted entry paths remain inside the intended directory before writing files.
  • Limit exposure by restricting which users or services can provide ZIP files to pf4j’s unzip functionality, and monitor logs for extraction attempts.

Generated by OpenCVE AI on April 2, 2026 at 05:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5458-7hh9-v7p4 pf4j is vulnerable to Path Traversal or Zip Slip attack through improper handling of zip entry names
History
Type Values Removed Values Added
Title Path Traversal Leading to Zip Slip in pf4j Unzip Function
Type Values Removed Values Added
First Time appeared Pf4j Project
Pf4j Project pf4j
CPEs cpe:2.3:a:pf4j_project:pf4j:*:*:*:*:*:*:*:*
Vendors & Products Pf4j Project
Pf4j Project pf4j
Type Values Removed Values Added
Title Path Traversal Leading to Zip Slip in pf4j Unzip Function
Type Values Removed Values Added
Title Path Traversal Vulnerability in PF4J Zip Extraction
Weaknesses CWE-20
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Path Traversal Vulnerability in PF4J Zip Extraction
Weaknesses CWE-20
CWE-22
Type Values Removed Values Added
Title Path Traversal Vulnerability in PF4J Zip Extraction
Weaknesses CWE-22
Type Values Removed Values Added
Title Path Traversal Vulnerability in PF4J Zip Extraction
Weaknesses CWE-22
Type Values Removed Values Added
Title Pf4j Zip Extraction Path Traversal Allowing Zip Slip
Weaknesses CWE-22
CWE-36
Type Values Removed Values Added
First Time appeared Pf4j
Pf4j pf4j
Vendors & Products Pf4j
Pf4j pf4j
Type Values Removed Values Added
Title Pf4j Zip Extraction Path Traversal Allowing Zip Slip
Weaknesses CWE-22
CWE-36
Type Values Removed Values Added
Description 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.
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 28, 2026, 1:20 AM
Reserved
Jan 9, 2026, 12:00 AM
Status
Analyzed
Published
Mar 25, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:03 AM