Skip to content
Fencer Intel
medium 6.1

CVE-2018-5712 json

An issue was discovered in PHP before 5.6.33, 7.0.x before 7.0.27, 7.1.x before 7.1.13, and 7.2.x before 7.2.1.

published 8y ago modified 4mo ago also EUVD-2018-17481

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

Summary

An issue was discovered in PHP before 5.6.33, 7.0.x before 7.0.27, 7.1.x before 7.1.13, and 7.2.x before 7.2.1. There is Reflected XSS on the PHAR 404 error page via the URI of a request for a .phar file.

Patch / fix

  • php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.23
  • php7.0 Ubuntu 16.04 LTS 7.0.28-0ubuntu0.16.04.1

ubuntu advisories UBUNTU-CVE-2018-5712

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:2519RHSA-2018:1296

  • php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 5.3.17-112.20.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.26.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.17.1

suse advisories SUSE-SU-2018:0806-1SUSE-SU-2018:0308-1SUSE-SU-2018:0216-1

  • php5 Alpine 3.8, Alpine 3.7, Alpine 3.6 +2 more 5.6.36-r0
  • php7 Alpine 3.15, Alpine 3.14, Alpine 3.13 +5 more 7.2.5-r0
  • php7 Alpine 3.5 7.0.30-r0
  • php7 Alpine 3.6 7.1.17-r0
  • php7 Alpine 3.7 7.1.29-r0

alpine advisories ALPINE-CVE-2018-5712

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-5712 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-5712 updated cvss 6.1

php: Reflected XSS on PHAR 404 page

  • Red Hat Enterprise Linux 5 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-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 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. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more
    fixed: vendor fix RHSA-2018:1296
  • 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
    fixed: vendor fix RHSA-2019:2519
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more
    fixed: vendor fix RHSA-2018:1296
  • Red Hat Enterprise Linux 5 php 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

Exploit prediction

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

CVSS scores

assigned by version score vector
NVD 3.0 6.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation
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.