CVEfocus › CVE database › CVE-2020-7068

CVE-2020-7068Use of freed hash key in the phar_parse_zipfile function

CVSS 4.8 MediumEPSS 1.6% (higher than 76% of CVEs)Published 2020-09-09Updated 2024-09-17Assigner: php

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

85Fixed
29Fix pending
29Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04php8.1Not affected
vulnerable_code_not_present
Ubuntu 20.04php7.4Fixed7.4.3-4ubuntu2.5UBUNTU-CVE-2020-7068
Ubuntu 18.04php7.2Fixed7.2.24-0ubuntu0.18.04.8UBUNTU-CVE-2020-7068
Ubuntu 16.04php7.0Fix pending7.0.33-0ubuntu0.16.04.16+esm1 (Ubuntu Pro)UBUNTU-CVE-2020-7068
Ubuntu 14.04php5Fix pending5.5.9+dfsg-1ubuntu4.29+esm14 (Ubuntu Pro)UBUNTU-CVE-2020-7068
Red Hat Enterprise Linux 8apcu-panelFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzipFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzip-develFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzip-toolsFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8phpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-bcmathFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-cliFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-commonFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-dbaFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-dbgFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-develFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-embeddedFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-enchantFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-ffiFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-fpmFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-gdFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-gmpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-intlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-jsonFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-ldapFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-mbstringFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-mysqlndFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-odbcFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-opcacheFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-pdoFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-pearFixed
Fix deferred
1:1.10.12-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-apcuFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-apcu-develFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-rrdFixed
Fix deferred
0:2.0.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-xdebugFixed
Fix deferred
0:2.9.5-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-xdebug3Fix pending
Fix deferred
Red Hat Enterprise Linux 8php-pecl-zipFixed
Fix deferred
0:1.18.2-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pgsqlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-processFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-recodeFix pending
Fix deferred
Red Hat Enterprise Linux 8php-snmpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-soapFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-xmlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-xmlrpcFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 7phpFix pending
Fix deferred
Red Hat Enterprise Linux 7php-bcmathFix pending
Fix deferred
Red Hat Enterprise Linux 7php-cliFix pending
Fix deferred
Red Hat Enterprise Linux 7php-commonFix pending
Fix deferred
Red Hat Enterprise Linux 7php-dbaFix pending
Fix deferred
Red Hat Enterprise Linux 7php-develFix pending
Fix deferred
Red Hat Enterprise Linux 7php-embeddedFix pending
Fix deferred
Red Hat Enterprise Linux 7php-enchantFix pending
Fix deferred
Red Hat Enterprise Linux 7php-fpmFix pending
Fix deferred
Red Hat Enterprise Linux 7php-gdFix pending
Fix deferred
Red Hat Enterprise Linux 7php-intlFix pending
Fix deferred
Red Hat Enterprise Linux 7php-ldapFix pending
Fix deferred
Red Hat Enterprise Linux 7php-mbstringFix pending
Fix deferred
Red Hat Enterprise Linux 7php-mysqlFix pending
Fix deferred
Red Hat Enterprise Linux 7php-mysqlndFix pending
Fix deferred
Red Hat Enterprise Linux 7php-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 7php-pdoFix pending
Fix deferred
Red Hat Enterprise Linux 7php-pgsqlFix pending
Fix deferred
Red Hat Enterprise Linux 7php-processFix pending
Fix deferred
Red Hat Enterprise Linux 7php-pspellFix pending
Fix deferred
Red Hat Enterprise Linux 7php-recodeFix pending
Fix deferred
Red Hat Enterprise Linux 7php-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 7php-soapFix pending
Fix deferred
Red Hat Enterprise Linux 7php-xmlFix pending
Fix deferred
Red Hat Enterprise Linux 7php-xmlrpcFix pending
Fix deferred
Red Hat Enterprise Linux 6phpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-imapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-tidyWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ztsWill not fix
Out of support scope
Red Hat Enterprise Linux 5phpWill not fix
Out of support scope
Red Hat Enterprise Linux 5php53Will not fix
Out of support scope
AlmaLinux 8apcu-panelFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzipFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzip-develFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzip-toolsFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8phpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-bcmathFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-cliFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-commonFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-dbaFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-dbgFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-develFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-embeddedFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-enchantFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-ffiFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-fpmFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-gdFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-gmpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-intlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-jsonFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-ldapFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-mbstringFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-mysqlndFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-odbcFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-opcacheFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-pdoFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-pearFixed1:1.10.12-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-apcuFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-apcu-develFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-rrdFixed2.0.1-1.module_el8.3.0+2009+b272fdefALSA-2021:4213
AlmaLinux 8php-pecl-xdebugFixed2.9.5-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-zipFixed1.18.2-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pgsqlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-processFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-snmpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-soapFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-xmlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-xmlrpcFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
Rocky Linux 8libzipFixed0:1.6.1-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux 8phpFixed0:7.4.19-1.module+el8.5.0+696+61e7c9baRLSA-2021:4213
Rocky Linux 8php-pearFixed1:1.10.12-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux 8php-pecl-apcuFixed0:5.1.18-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux 8php-pecl-rrdFixed0:2.0.1-1.module+el8.4.0+414+2e7afcddRLSA-2021:4213
Rocky Linux 8php-pecl-xdebugFixed0:2.9.5-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux 8php-pecl-zipFixed0:1.18.2-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Alpine Linux 3.11php7Fixed7.3.22-r0ALPINE-CVE-2020-7068
Alpine Linux 3.9php7Fixed7.2.33-r0ALPINE-CVE-2020-7068

What the vendor says

As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.