CVEfocus › CVE database › CVE-2018-20783

CVE-2018-20783

EPSS 5.7% (higher than 93% of CVEs)Published 2019-02-21Updated 2024-08-05Assigner: mitre

In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2.x before 7.2.13, a buffer over-read in PHAR reading functions may allow an attacker to read allocated or unallocated memory past the actual data when trying to parse a .phar file. This is related to phar_parse_pharfile in ext/phar/phar.c.

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

86Fixed
26Fix pending
28Will not fix

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 18.04php7.2Fixed7.2.15-0ubuntu0.18.04.1UBUNTU-CVE-2018-20783
Ubuntu 16.04php7.0Fixed7.0.33-0ubuntu0.16.04.1UBUNTU-CVE-2018-20783
Ubuntu 14.04php5Fix pending5.5.9+dfsg-1ubuntu4.29+esm2 (Ubuntu Pro)UBUNTU-CVE-2018-20783
Red Hat Enterprise Linux 8apcu-panelFixed0:5.1.12-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8libzipFixed0:1.5.1-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8libzip-develFixed0:1.5.1-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8libzip-toolsFixed0:1.5.1-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8phpFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-bcmathFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-cliFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-commonFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-dbaFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-dbgFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-develFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-embeddedFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-enchantFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-fpmFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-gdFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-gmpFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-intlFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-jsonFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-ldapFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-mbstringFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-mysqlndFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-odbcFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-opcacheFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-pdoFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-pearFixed1:1.10.5-9.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8php-pecl-apcuFixed0:5.1.12-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8php-pecl-apcu-develFixed0:5.1.12-2.module+el8.1.0+3202+af5476b9RHSA-2020:1624
Red Hat Enterprise Linux 8php-pecl-zipFixed0:1.15.3-1.module+el8.1.0+3186+20164e6fRHSA-2020:1624
Red Hat Enterprise Linux 8php-pgsqlFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-processFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-recodeFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-snmpFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-soapFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-xmlFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
Red Hat Enterprise Linux 8php-xmlrpcFixed0:7.2.24-1.module+el8.2.0+4601+7c76a223RHSA-2020:1624
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
AlmaLinux 8apcu-panelFixed5.1.12-2.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8libzipFixed1.5.1-2.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8libzip-develFixed1.5.1-2.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8libzip-toolsFixed1.5.1-2.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8phpFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-bcmathFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-cliFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-commonFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-dbaFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-dbgFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-develFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-embeddedFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-enchantFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-fpmFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-gdFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-gmpFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-intlFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-jsonFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-ldapFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-mbstringFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-mysqlndFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-odbcFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-opcacheFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-pdoFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-pearFixed1:1.10.5-9.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-pecl-apcuFixed5.1.12-2.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-pecl-apcu-develFixed5.1.12-2.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-pecl-zipFixed1.15.3-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-pgsqlFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-processFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-recodeFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-snmpFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
AlmaLinux 8php-soapFixed7.2.24-1.module_el8.3.0+2010+7c76a223ALSA-2020:1624
AlmaLinux 8php-xmlFixed7.2.24-1.module_el8.5.0+53+9945c2afALSA-2020:1624
AlmaLinux 8php-xmlrpcFixed7.2.24-1.module_el8.4.0+2228+7c76a223ALSA-2020:1624
Rocky Linux 8libzipFixed0:1.5.1-2.module+el8.4.0+413+c9202ddaRLSA-2020:1624
Rocky Linux 8phpFixed0:7.2.24-1.module+el8.4.0+413+c9202ddaRLSA-2020:1624
Rocky Linux 8php-pearFixed1:1.10.5-9.module+el8.4.0+413+c9202ddaRLSA-2020:1624
Rocky Linux 8php-pecl-apcuFixed0:5.1.12-2.module+el8.4.0+413+c9202ddaRLSA-2020:1624
Rocky Linux 8php-pecl-zipFixed0:1.15.3-1.module+el8.4.0+413+c9202ddaRLSA-2020:1624
Alpine Linux 3.15php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.14php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.13php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.12php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.11php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.10php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.9php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.8php7Fixed7.2.13-r0ALPINE-CVE-2018-20783
Alpine Linux 3.7php7Fixed7.1.29-r0ALPINE-CVE-2018-20783

What the vendor says

As published in the CVE record by mitre, 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.