ADVISORIES

Vulnerability

CVE-2021-21706

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.

7 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • ALPINE-CVE-2021-21706

    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…

    CVE-2021-21706 Alpine Updated 3 November 2026
  • CNA-CVE-2021-21706

    ZipArchive::extractTo may extract outside of destination dir

    CVE-2021-21706 PHP Updated 16 September 2024
  • SUSE-SU-2022:4068-1

    Security update for php74

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSE Updated 4 February 2026
  • SUSE-SU-2022:4069-1

    Security update for php7

    CVE-2017-8923CVE-2020-7068CVE-2020-7069CVE-2020-7070 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-21706

    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…

    CVE-2021-21706 Ubuntu Updated 16 July 2025
  • openSUSE-SU-2024:11167-1

    php7-7.4.24-1.1 on GA media

    Known exploited CVE-2005-3353CVE-2005-3388CVE-2005-3389CVE-2005-3390 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:11169-1

    php8-8.0.11-1.1 on GA media

    Known exploited CVE-2005-3353CVE-2005-3388CVE-2005-3389CVE-2005-3390 openSUSE Updated 4 February 2026

References