CVE-2021-21706

MEDIUM

PHP 7.3.0-7.3.30 - Path Traversal and Arbitrary File Write via ZipArchive::extractTo

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Issue Tracking, Patch, Vendor Advisory x_refsource_misc
https://bugs.php.net/bug.php?id=81420
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20211029-0007/

Scores

CVSS v3 5.3
EPSS 0.0134
EPSS Percentile 67.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Details

CWE
CWE-22 CWE-24
Status published
Products (1)
php/php 7.3.0 - 7.3.31
Published Oct 04, 2021
Tracked Since Feb 18, 2026