CVE-2021-21706CWE-24

ZipArchive::extractTo may extract outside of destination dir

Medium · published October 4, 2021

CVSS v3.1
5.3
EPSS
1%
Percentile
73.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01438 · 73.0th percentile
Weakness
CWE-24 · Path Traversal: '../filedir'
Published
2021-10-04T04:00Z
EPSS history
Timeline
  • 04 OCT 04:00Z
    ZipArchive::extractTo may extract outside of destination dir
    cvelistv5