CVE-2018-5712

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.

Published: 2018-01-16 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-5712 is rated Moderate Risk (60.8/100): CVSS Medium severity, with high exploitation likelihood (EPSS 89.19%, 100th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. EPSS rose +1.58% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2018-5712

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-28 87.61% 89.19% +1.58%
2 2026-03-04 71.42% 87.61% +16.19%
3 2026-03-01 71.42%

Full EPSS history (58 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-5712

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.0 MEDIUM
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 [email protected]
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:N)
No confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2018-5712

OS Trackers for CVE-2018-5712

vendor priority summary link
alpine medium CVE-2018-5712: 1 source package rows (php7); 1 state rows across 1 repos (edge-community); fixed 1, open 0. https://security.alpinelinux.org/vuln/CVE-2018-5712
redhat medium https://access.redhat.com/security/cve/CVE-2018-5712
suse medium CVE-2018-5712 severity moderate: SUSE including 240 source package names (apache2-mod_php5-5.5.14-109.17.1, apache2-mod_php53-5.3.17-112.20.1, …), 701 product×package rows across 21 product lines (SUSE Enterprise Storage 7.1, SUSE Liberty Linux 7, … (21 product lines)): Fixed 395, Known Not Affected 306. https://www.suse.com/security/cve/CVE-2018-5712/
ubuntu medium CVE-2018-5712 medium priority: Ubuntu including 4 source packages (php5, php7.0, php7.1, php7.2), 20 status rows across 5 suites (artful, bionic, trusty, upstream, xenial): DNE 12, released 7, not-affected 1. https://ubuntu.com/security/CVE-2018-5712

Affected software / configurations for CVE-2018-5712

Vendor Product Version Raw CPE
php php <= 5.6.32 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 7.0.0, <= 7.0.26 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php > 7.1.0, <= 7.1.12 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php 7.2.0 cpe:2.3:a:php:php:7.2.0:*:*:*:*:*:*:*
debian debian_linux 7.0 cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
canonical ubuntu_linux 12.04 cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
canonical ubuntu_linux 14.04 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 17.10 cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*

References for CVE-2018-5712

URL Tags
http://php.net/ChangeLog-5.php Release Notes Vendor Advisory
http://php.net/ChangeLog-7.php Release Notes Vendor Advisory
http://www.securityfocus.com/bid/102742 Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/104020 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1040363 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2018:1296 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2519
https://bugs.php.net/bug.php?id=74782 Issue Tracking Patch Vendor Advisory
https://lists.debian.org/debian-lts-announce/2018/01/msg00025.html Mailing List Third Party Advisory
https://usn.ubuntu.com/3566-1/ Third Party Advisory
https://usn.ubuntu.com/3600-1/ Third Party Advisory
https://usn.ubuntu.com/3600-2/ Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2020.html
cvelogic Threat Intelligence