Skip to content
OpenAdvisories
Medium · 4.8 CVE-2020-7068 EUVD-2020-28202GHSA-vc9g-5348-gqwv

Use of freed hash key in the phar_parse_zipfile function

Published Sep 9, 2020 · Updated Sep 17, 2024 · Assigned by php

Description

In PHP versions 7.2.x below 7.2.33, 7.3.x below 7.3.21 and 7.4.x below 7.4.9, while processing PHAR files using phar extension, phar_parse_zipfile could be tricked into accessing freed memory, which could lead to a crash or information disclosure.

Affected products

VendorProductAffectedFixed
PHP Group PHP 7.3.x – < 7.3.21, 7.4.x – < 7.4.9, 7.2.x – < 7.2.33 7.3.21

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 php7.4 7.4.9-1 —
Debian 10 php7.3 7.3.27-1~deb10u1 DSA-4856-1
Debian 9 php7.0 7.0.33-0+deb9u9 DLA-2345-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS php7.4 7.4.3-4ubuntu2.5 USN-5006-1
Ubuntu 18.04 LTS php7.2 7.2.24-0ubuntu0.18.04.8 USN-5006-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.16+esm1 USN-5006-2
Ubuntu Pro 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.29+esm14 USN-5006-2
ReleasePackageFixed inAdvisory
RHEL 8 apcu-panel +2 5.1.18-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 8 libzip +2 1.6.1-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 8 php +25 7.4.19-1.module+el8.5.0+11143+cc873159 RHSA-2021:4213
RHEL 8 php-pear 1:1.10.12-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 8 php-pecl-xdebug 2.9.5-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 8 php-pecl-zip 1.18.2-1.module+el8.3.0+6678+b09f589e RHSA-2021:4213
RHEL 3 rh-php73-php +27 7.3.29-1.el7 RHSA-2021:2992

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 apcu-panel +2 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2021:4213
AlmaLinux 8 libzip +2 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2021:4213
AlmaLinux 8 php +25 7.4.19-3.module_el8.6.0+2976+8b9a0d08 ALSA-2021:4213
AlmaLinux 8 php-pear 1:1.10.12-1.module_el8.6.0+2750+78feabcb ALSA-2021:4213
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.3.0+2009+b272fdef ALSA-2021:4213
AlmaLinux 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2021:4213
AlmaLinux 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2021:4213

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libzip 1.6.1-1.module+el8.4.0+415+e936cba3 RLSA-2021:4213
Rocky Linux 8 php 7.4.19-1.module+el8.5.0+696+61e7c9ba RLSA-2021:4213
Rocky Linux 8 php-pear 1:1.10.12-1.module+el8.4.0+415+e936cba3 RLSA-2021:4213
Rocky Linux 8 php-pecl-apcu 5.1.18-1.module+el8.4.0+415+e936cba3 RLSA-2021:4213
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.4.0+414+2e7afcdd RLSA-2021:4213
Rocky Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.4.0+415+e936cba3 RLSA-2021:4213
Rocky Linux 8 php-pecl-zip 1.18.2-1.module+el8.4.0+415+e936cba3 RLSA-2021:4213
ReleasePackageFixed inAdvisory
SLES 15 SP3 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SLES 15 SP2 php7 7.4.6-3.6.1 SUSE-SU-2022:4069-1, SUSE-SU-2020:2456-1
SLES 15 SP1 php7 7.2.5-4.61.1 SUSE-SU-2022:4067-1, SUSE-SU-2020:2455-1
SLES 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES 12 SP5 php7 7.0.7-50.97.1 SUSE-SU-2020:2403-1
SLES 12 SP5 php72 7.2.5-1.49.1 SUSE-SU-2020:2405-1
SLES 12 SP5 php74 7.4.6-1.8.1 SUSE-SU-2022:4068-1, SUSE-SU-2020:2404-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 php5 5.5.14-109.79.1 SUSE-SU-2020:2477-1
SLES 12 php7 7.0.7-50.97.1 SUSE-SU-2020:2403-1
SLES 12 php72 7.2.5-1.49.1 SUSE-SU-2020:2405-1
SLES 12 php74 7.4.6-1.8.1 SUSE-SU-2022:4068-1, SUSE-SU-2020:2404-1
SLES for SAP 15 SP2 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SLES for SAP 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES for SAP 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 SP2 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SLE HPC 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SUSE Manager Server 4.1 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SUSE Manager Retail Branch Server 4.1 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SUSE Manager Proxy 4.1 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SUSE Enterprise Storage 7 php7 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
SUSE Enterprise Storage 6 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.24-2.1 openSUSE-SU-2024:11569-1
openSUSE Leap 15.4 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4069-1, SUSE-SU-2022:4067-1
openSUSE Leap 15.3 php7 +1 7.4.33-150200.3.46.2 SUSE-SU-2022:4069-1
openSUSE Leap 15.2 php7 +1 7.4.6-lp152.2.6.1 openSUSE-SU-2020:1356-1
openSUSE Leap 15.1 php7 +1 7.2.5-lp151.6.32.1 openSUSE-SU-2020:1354-1
ReleasePackageFixed inAdvisory
Alpine v3.11 php7 7.3.22-r0 —
Alpine v3.9 php7 7.2.33-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 apcu-panel +2 5.1.18-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213
Oracle Linux 8 libzip +2 1.6.1-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213
Oracle Linux 8 php +25 7.4.19-1.module+el8.5.0+20354+db97279a ELSA-2021-4213
Oracle Linux 8 php-pear 1:1.10.12-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213
Oracle Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213
Oracle Linux 8 php-pecl-zip 1.18.2-1.module+el8.3.0+7685+72d70b58 ELSA-2021-4213

Advisories 24

References