CVE-2021-21706

Severity CVSS v4.0:
Pending analysis
Type:
CWE-22 Path Traversal
Publication date:
04/10/2021
Last modified:
03/11/2021

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 7.3.0 (including) 7.3.31 (excluding)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 7.4.0 (including) 7.4.24 (excluding)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 8.0.0 (including) 8.0.11 (excluding)
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*