Skip to content
Fencer Vulns
critical 9.8

CVE-2018-7584 in the critical feed json

In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while p…

published 2018-03-01 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-19305

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
87.3%
EPSS 87.3% chance of exploitation in 30 days, percentile 99.7%
public exploits
1
Exploit-DB

Summary

In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while parsing an HTTP response in the php_stream_url_wrap_http_ex function in ext/standard/http_fopen_wrapper.c. This subsequently results in copying a large string.

Patch / fix

  • php php 7.0.28
  • php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.24
  • php7.0 Ubuntu 16.04 LTS 7.0.28-0ubuntu0.16.04.1
  • php7.2 Ubuntu 18.04 LTS 7.2.3-1ubuntu1

ubuntu advisories UBUNTU-CVE-2018-7584

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 7 5.4.16-48.el7
  • php-gd RHEL 7 5.4.16-48.el7
  • php-cli RHEL 7 5.4.16-48.el7
  • php-dba RHEL 7 5.4.16-48.el7
  • php-fpm RHEL 7 5.4.16-48.el7
  • php-pdo RHEL 7 5.4.16-48.el7
  • php-xml RHEL 7 5.4.16-48.el7
  • php-intl RHEL 7 5.4.16-48.el7

red hat advisories RHSA-2020:1112RHSA-2019:2519

  • php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 5.3.17-112.20.1
  • php5 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 5.5.14-109.24.1
  • php7 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 7.0.7-50.32.1

suse advisories SUSE-SU-2018:0806-1SUSE-SU-2018:0717-1SUSE-SU-2018:0646-1

  • php5 Alpine 3.8, Alpine 3.7, Alpine 3.6 +2 more 5.6.34-r0
  • php7 Alpine 3.5 7.0.28-r0
  • php7 Alpine 3.7, Alpine 3.6 7.1.15-r0

alpine advisories ALPINE-CVE-2018-7584

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

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-7584 updated cvss 5.9

php: Stack-based buffer under-read in php_stream_url_wrap_http_ex() in http_fopen_wrapper.c when parsing HTTP response

  • Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +52 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-pdo 5.4.16-48.el7, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-pdo 5.4.16-48.el7, +18 more Red Hat Enterprise Linux Server (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-pdo 5.4.16-48.el7, php-xml 5.4.16-48.el7, php-ldap 5.4.16-48.el7, +8 more Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-intl 5.4.16-48.el7, php-snmp 5.4.16-48.el7, php-bcmath 5.4.16-48.el7, php-pspell 5.4.16-48.el7, +4 more Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-48.el7, php-gd 5.4.16-48.el7, php-cli 5.4.16-48.el7, php-pdo 5.4.16-48.el7, php-xml 5.4.16-48.el7, php-ldap 5.4.16-48.el7, +8 more Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-48.el7, php-fpm 5.4.16-48.el7, php-intl 5.4.16-48.el7, php-snmp 5.4.16-48.el7, php-bcmath 5.4.16-48.el7, php-pspell 5.4.16-48.el7, +4 more
    fixed: vendor fix RHSA-2020:1112
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) 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.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-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.6) 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 Workstation (v. 7) 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
    fixed: vendor fix RHSA-2019:2519
  • Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more
    not affected: vulnerable code not present

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

Timeline

  1. Published
  2. First public exploit (EDB-44846)

Exploit prediction

87.35% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-44846 PHP 7.2.2 - 'php_stream_url_wrap_http_ex' Buffer Overflow dos, 2018-06-06

CVSS scores

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

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Technology feeds

References

Sources

Fencer Vulns 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.