ZipArchive::extractTo may extract outside of destination dir
At a glance
Severity
MEDIUM 5.3
EPSS
EPSS 1.44 % · percentile 73 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
php
NVD status
Modified
Description
In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.