CVE-2021-21706 MEDIUM

CVE-2021-21706: ZipArchive::extractTo may extract outside of destination dir

Vendor Php Group
Product PHP
Weakness CWE-24
Published October 4, 2021
Last update September 16, 2024

CVSS base score

5.3/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction Required
Confidentiality None
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 4, 2021 CVE published
September 16, 2024 Record updated