Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious ZIP with traversal entry
-
DeliveryUpload archive to target application
-
ExploitTrigger ZipFile::extractTo() call
-
ExecutionTraverse directory boundary via entryName
-
PersistWrite attacker-controlled file to arbitrary path
-
ImpactExecute payload (e.g., web shell)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The application must invoke ZipFile::extractTo() from Ne-Lexa php-zip version 4.0.2 or earlier with an entryName value sourced from a ZIP archive controlled by the attacker - typically through a file upload endpoint, a URL-fetched archive, or any other path where untrusted ZIP content is processed. No authentication is required by the library itself (PR:N per CVSS vector), though application-layer authentication on the upload endpoint would raise the attacker's initial access bar. Exploitation is limited to the filesystem permissions of the PHP process user; it does not by itself grant code execution unless the written file lands in a web-accessible or executable location. Non-default server configurations that restrict write permissions outside the web root, or that disable direct PHP file execution, reduce but do not eliminate the risk of chained exploitation. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates fully remote, zero-complexity, unauthenticated exploitation with no user interaction required - a favorable attack profile. Impact is bounded to VI:L and VA:L on the vulnerable system, reflecting limited integrity and availability consequences rather than full system compromise. The E:P supplemental metric confirms publicly available proof-of-concept code, which lowers the bar for exploitation significantly. There is no CISA KEV listing, so mass in-the-wild exploitation is not confirmed; however, the combination of a public POC, unpatched status, and low attack complexity makes this a credible near-term threat for any application processing untrusted ZIP files with this library. The moderate CVSS base score of 6.9 may understate real risk if an attacker leverages file-write primitives to stage web shells in a document root or overwrite configuration files - an impact chain not fully reflected in the VI:L/VA:L metrics. No conflicting data signals were identified, though the absence of a vendor advisory limits independent verification of the full affected version range. |
| Exploit ScenarioDerived | An attacker submits a crafted ZIP archive to a PHP web application that uses Ne-Lexa php-zip to process user-uploaded files. The archive contains an entry with a filename like '../../var/www/html/shell.php', which php-zip's ZipFile::extractTo() resolves relative to the filesystem rather than the intended extraction directory. The attacker's payload is written to the web root, where it can subsequently be executed as a web shell. Publicly available exploit code exists via the GitHub issue at https://github.com/Ne-Lexa/php-zip/issues/100, lowering the skill threshold for this attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Path traversal in Ne-Lexa php-zip up to version 4.0.2 allows remote attackers to write files outside the intended extraction directory by supplying a crafted entryName argument to ZipFile::extractTo(). Any PHP application that processes untrusted ZIP archives using this library is exposed to arbitrary file write at the web server's permission level. No public exploit identified at time of analysis is incorrect here - publicly available exploit code exists via a GitHub issue report, and the project maintainer has not yet responded to the disclosure, leaving all affected versions unpatched.
RemediationAI
No vendor-released patch is available at time of analysis - the project has not responded to the coordinated disclosure. As a primary compensating control, applications should sanitize ZIP entry names before passing them to ZipFile::extractTo(): validate that the resolved extraction path remains within the intended target directory using PHP's realpath() combined with a prefix check, or apply basename() to strip all directory components from entryName. A more robust alternative is to avoid extracting untrusted ZIP archives with this library entirely until a patched release is available, substituting a maintained library with built-in path traversal protection. If extraction is operationally necessary, restrict the PHP process user's write permissions to only the intended extraction directory via filesystem ACLs, limiting the blast radius of a successful traversal. Monitor VulDB advisory https://vuldb.com/vuln/382660 and the GitHub repository https://github.com/Ne-Lexa/php-zip/ for patch availability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Ne-Lexa php-zip is a PHP library for reading and writing ZIP archives, identified by CPE cpe:2.3:a:ne-lexa:php-zip:*:*:*:*:*:*:*:*. The vulnerability resides in src/ZipFile.php within the ZipFile::extractTo() method, which handles extraction of individual ZIP entries. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), a classic path traversal flaw: the entryName parameter - derived from the ZIP archive's internal entry filenames - is not sanitized to strip directory traversal sequences such as '../' before being used to construct the target filesystem path. This allows a malicious archive to place files at arbitrary locations accessible to the PHP process, rather than confining them to the specified extraction directory.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable, no privileges or interaction required; impact limited to low integrity and availability write primitive within the application's filesystem scope.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in Ne-Lexa php-zip up to 4.0.2. This affects the function ZipFile::extractTo of the file src/ZipFile.php of the component ZIP Handler. Performing a manipulation of the argument entryName results in path traversal. It is possible to initiate the attack remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-48450
GHSA-rqr8-4xxr-j89f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB