CVE-2018-5712PHP XSS
There is Reflected XSS on the PHAR 404 error page via the URI of a request for a .phar file.
Published Jan 16, 2018 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2018-5712, DEBIAN-CVE-2018-5712, DLA-1251-1, UBUNTU-CVE-2018-5712
Key Facts
Patch immediately- CVE-2018-5712 is a medium-severity vulnerability (CVSS 6.1 v3.1) affecting PHP, Ubuntu Linux (Canonical), Debian Linux and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 80% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php5 5.5.14-109.17.1, apache2-mod_php5 5.5.14-91.2, apache2-mod_php53 5.3.17-112.20.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
6.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS (30-day exploit likelihood)
80%
Higher than 99.6% of all scored CVEs
Exploit maturity
None known
ATLAS score
30/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
Description
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.
Affected Products
736 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHPPHP | 7.2.0 | 5.6.32 |
| Ubuntu LinuxCanonical | 12.04, 14.04, 16.04, 17.10 | n/a |
| Debian LinuxDebian | 7.0 | n/a |
| php5alpine | See advisory | 5.6.36-r0 |
| php7alpine | See advisory | 7.2.5-r0 |
Patched Releases
apache2-mod_php5
5.5.14-109.17.1, 5.5.14-91.2
apache2-mod_php53
5.3.17-112.20.1
apache2-mod_php7
7.0.7-28.1, 7.0.7-50.26.1
PHP
0:5.4.16-48.el7, 5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7, <=5.6.32
php-bcmath
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-cli
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-common
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-dba
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-devel
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-embedded
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-enchant
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-fpm
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-gd
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-imap
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux
php-intl
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-ldap
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-mbstring
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-mysql
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-mysqlnd
5.4.16-48.el7
php-odbc
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-pdo
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-pgsql
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-process
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-pspell
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
php-recode
5.3.3-50.el6_10.tuxcare.ol.els21, 5.3.3-51.el6.cloudlinux, 5.4.16-48.el7
Timeline
Publicly disclosed
Jan 16, 2018
Last updated
Nov 3, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- advisorysecurity.alpinelinux.org · CVE-2018-5712
- advisoryubuntu.com · CVE-2018-5712
- advisorycve.org · CVERecord
- advisoryphp.net · ChangeLog-5.php
- advisoryphp.net · ChangeLog-7.php
FAQ
Common Questions.
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.
Affected: PHP versions 7.2.0; Ubuntu Linux (Canonical) versions 12.04, 14.04, 16.04, 17.10; Debian Linux versions 7.0, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including apache2-mod_php5 5.5.14-109.17.1, apache2-mod_php5 5.5.14-91.2, apache2-mod_php53 5.3.17-112.20.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2018-5712 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo