Skip to content
Fencer Intel
medium 6.1

CVE-2018-10547 json

An issue was discovered in ext/phar/phar_object.c in PHP before 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5.

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

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

Summary

An issue was discovered in ext/phar/phar_object.c in PHP before 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5. There is Reflected XSS on the PHAR 403 and 404 error pages via request data of a request for a .phar file. NOTE: this vulnerability exists because of an incomplete fix for CVE-2018-5712.

Patch / fix

  • php php 5.6.36, 7.0.30, 7.1.17, 7.2.5
  • php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.25
  • php7.0 Ubuntu 16.04 LTS 7.0.30-0ubuntu0.16.04.1
  • php7.2 Ubuntu 18.04 LTS 7.2.5-0ubuntu0.18.04.1

ubuntu advisories UBUNTU-CVE-2018-10547

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.23.1
  • php5 SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 5.5.14-109.27.2
  • php7 SLE Software Development Kit 12 SP3, SLE Module for Web and Scripting 12 7.0.7-50.38.2

suse advisories SUSE-SU-2018:1294-1SUSE-SU-2018:1291-1SUSE-SU-2018:1176-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.7, Alpine 3.6 7.1.17-r0

alpine advisories ALPINE-CVE-2018-10547

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

php: Reflected XSS vulnerability on PHAR 403 and 404 error pages

  • 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-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 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 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

3.44% chance of exploitation in the next 30 days, higher than 89% 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.