CVE-2021-21706

ZipArchive::extractTo may extract outside of destination dir

Published Oct 4, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-8878 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 16, 2024, 11:06 PM
Reserved
Jan 4, 2021, 12:00 AM
Status
Modified
Published
Oct 4, 2021, 4:15 AM
Modified
Jun 17, 2026, 3:36 AM