Skip to content
Fencer Intel
high 7.5

CVE-2018-20783 json

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 all…

published 7y ago modified 4mo ago also EUVD-2018-13326

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
5.7%
EPSS 5.7% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • php php 5.6.39, 7.0.33, 7.1.25, 7.2.13
  • php7.0 Ubuntu 16.04 LTS 7.0.33-0ubuntu0.16.04.1
  • php7.2 Ubuntu 18.04 LTS 7.2.15-0ubuntu0.18.04.1
  • php5 Ubuntu Pro 14.04 LTS 5.5.9+dfsg-1ubuntu4.29+esm2

ubuntu advisories UBUNTU-CVE-2018-20783

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • libzip RHEL 8 1.5.1-2.module+el8.1.0+3202+af5476b9
  • php-gd RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • php-cli RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • php-dba RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • php-dbg RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • php-fpm RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223
  • php-gmp RHEL 8 7.2.24-1.module+el8.2.0+4601+7c76a223

red hat advisories RHSA-2020:1624RHSA-2019:3299RHSA-2019:2519

  • php7 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +8 more 7.2.34-150000.4.103.1
  • php7 SLE Module for Web and Scripting 15, SLE Module for Package Hub 15 7.2.5-4.32.1
  • php5 SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 5.5.14-109.51.6
  • php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 +1 more 5.3.17-112.58.1
  • php72 SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 7.2.5-1.7.1
  • tidy SLE Software Development Kit 12 SP4, SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 1.0.20100204cvs-26.2.1
  • libmemcached SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES 12 SP4 +3 more 1.0.18-3.2.1
  • php72-memcached SLE Module for Web and Scripting 12 3.1.3-1.3.1

suse advisories SUSE-SU-2022:4067-1SUSE-SU-2019:1461-1SUSE-SU-2019:0985-1SUSE-SU-2019:14013-1SUSE-RU-2019:0823-1

  • php7 openSUSE Tumbleweed 7.4.24-1.1
  • php8 openSUSE Tumbleweed 8.0.11-1.1
  • php7 openSUSE Leap 15.0 7.2.5-lp150.2.19.1
  • php7 openSUSE Leap 15.1 7.2.5-lp151.6.3.1

opensuse advisories openSUSE-SU-2024:11167-1openSUSE-SU-2024:11169-1openSUSE-SU-2019:1573-1openSUSE-SU-2019:1572-1

  • php AlmaLinux 8 7.2.24-1.module_el8.3.0+2010+7c76a223
  • php AlmaLinux 8 7.2.24-1.module_el8.4.0+2228+7c76a223
  • php AlmaLinux 8 7.2.24-1.module_el8.5.0+53+9945c2af
  • libzip AlmaLinux 8 1.5.1-2.module_el8.3.0+2010+7c76a223
  • libzip AlmaLinux 8 1.5.1-2.module_el8.4.0+2228+7c76a223
  • libzip AlmaLinux 8 1.5.1-2.module_el8.5.0+53+9945c2af
  • php-gd AlmaLinux 8 7.2.24-1.module_el8.5.0+53+9945c2af
  • php-gd AlmaLinux 8 7.2.24-1.module_el8.3.0+2010+7c76a223

almalinux advisories ALSA-2020:1624

  • php Rocky Linux 8 7.2.24-1.module+el8.4.0+413+c9202dda
  • libzip Rocky Linux 8 1.5.1-2.module+el8.4.0+413+c9202dda
  • php-pear Rocky Linux 8 1:1.10.5-9.module+el8.4.0+413+c9202dda
  • php-pecl-zip Rocky Linux 8 1.15.3-1.module+el8.4.0+413+c9202dda
  • php-pecl-apcu Rocky Linux 8 5.1.12-2.module+el8.4.0+413+c9202dda

rocky linux advisories RLSA-2020:1624

  • php7 Alpine 3.15, Alpine 3.14, Alpine 3.13 +5 more 7.2.13-r0
  • php7 Alpine 3.7 7.1.29-r0

alpine advisories ALPINE-CVE-2018-20783

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2018-20783 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-20783 updated cvss 5.3

php: Buffer over-read in PHAR reading functions

  • Red Hat Enterprise Linux 5 php Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections rh-php70-php, rh-php70-php-gd, rh-php70-php-cli, rh-php70-php-dba, rh-php70-php-dbg, rh-php70-php-fpm, +24 more
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) php 7.2.24-1.module+el8.2.0+4601+7c76a223, libzip 1.5.1-2.module+el8.1.0+3202+af5476b9, php-gd 7.2.24-1.module+el8.2.0+4601+7c76a223, php-cli 7.2.24-1.module+el8.2.0+4601+7c76a223, php-dba 7.2.24-1.module+el8.2.0+4601+7c76a223, php-dbg 7.2.24-1.module+el8.2.0+4601+7c76a223, +26 more
    fixed: vendor fix RHSA-2020:1624
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more
    fixed: vendor fix RHSA-2019:2519
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-php72-php 7.2.24-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php72-php-cli 7.2.24-1.el7, rh-php72-php-dba 7.2.24-1.el7, rh-php72-php-dbg 7.2.24-1.el7, rh-php72-php-fpm 7.2.24-1.el7, +22 more
    fixed: vendor fix RHSA-2019:3299
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php71-php 7.1.30-1.el7, rh-php72-php 7.2.24-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php72-php-gd 7.2.24-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, +50 more
    fixed: vendor fix RHSA-2019:2519

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

5.66% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugs.php.net https://bugs.php.net/bug.php?id=77143 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.