Skip to content
Noroxi
CVE-2018-5712· NVD / CVE Program· CNA mitre

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.

Noroxi assessment

Priority: Plan (action score 48/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 79.9% (FIRST EPSS); higher than 99.6% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
  • Fixed version: php5 (Alpine:v3.4) 5.6.36-r0; php5 (Debian:7) 5.4.45-0+deb7u12; php5 (Debian:8) 5.6.33+dfsg-0+deb8u1.

Add it to your regular patch cycle. Upgrade to php5 (Alpine:v3.4) 5.6.36-r0; php5 (Debian:7) 5.4.45-0+deb7u12; php5 (Debian:8) 5.6.33+dfsg-0+deb8u1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

MediumCVSS 6.1 · v3.0—No exploit Fix available
Published
Jan 16, 2018
Updated
Jun 16, 2026
EPSS
79.9% · 99th percentile

Report tools

JSON

Action score

48

Plan

Add it to your regular patch cycle.

CVSS
24 / 40 · 6.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
24 / 30 · 79.9%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2018-5712

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
phpphp
debiandebian linux
canonicalubuntu linux

Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)

Watch new CVEs for php

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or gets exploit code

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • php phpup to 5.6.32 inclusive
  • php php7.0.0 and later · up to 7.0.26 inclusive
  • php phpafter 7.1.0 · up to 7.1.12 inclusive
  • php php7.2.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.4php5before 5.6.36-r05.6.36-r0
Debian:7php5before 5.4.45-0+deb7u125.4.45-0+deb7u12
Debian:8php5before 5.6.33+dfsg-0+deb8u15.6.33+dfsg-0+deb8u1
Debian:9php7.0before 7.0.27-0+deb9u17.0.27-0+deb9u1
Red Hat:enterprise_linux:7::clientphpbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-bcmathbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-clibefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-commonbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-dbabefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-debuginfobefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-develbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-embeddedbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-enchantbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-fpmbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-gdbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-intlbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-ldapbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-mbstringbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-mysqlbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-mysqlndbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-odbcbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-pdobefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-pgsqlbefore 0:5.4.16-48.el70:5.4.16-48.el7
Red Hat:enterprise_linux:7::clientphp-processbefore 0:5.4.16-48.el70:5.4.16-48.el7

+39

Same product

php: all records

Other highest-scoring records for the same primary product.

  • CVE-2024-4577Argument Injection in PHP-CGIKEV
    99Now
  • CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV
    99Now
  • CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV
    99Now
  • CVE-2018-7584In 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 pa
    65This week
  • CVE-2018-19518University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of
    59Plan
  • CVE-2016-3078Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-b
    56Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:php55.6.36-r0 · Alpine:v3.4Package registry (OSV)
debian:php55.4.45-0+deb7u12 · Debian:7Package registry (OSV)
debian:php7.07.0.27-0+deb9u1 · Debian:9Package registry (OSV)
red hat:rh-php71-php0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-bcmath0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-cli0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-common0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-dba0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-dbg0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-debuginfo0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-devel0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-embedded0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-enchant0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-fpm0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-php71-php-gd0:7.1.30-1.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
suse:php55.5.14-109.17.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)
suse:php535.3.17-112.20.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)
suse:php77.0.7-50.26.1 · SUSE:Linux Enterprise Module for Web and Scripting 12Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
low · data or configuration can be modified
Availability
none

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality impact
Low
Integrity impact
Low
Availability impact
None

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

nvd-primary

Root cause

User content is inserted into the page as HTML. The browser interprets the content as code rather than data.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
commentEl.innerHTML = comment.body;

Fixed

ts
commentEl.textContent = comment.body;

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records