CVE-2018-5712 Cross-site scripting in n/a
Reflected XSS in PHP's PHAR 404 error page allows attackers to execute arbitrary scripts via a crafted URI.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-5712?
CVE-2018-5712 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 16 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2018-5712?
It affects 3 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Php Php.
How do I fix CVE-2018-5712?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-5712 being exploited?
There is no known exploitation of CVE-2018-5712 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2018-5712, DLA-1251-1, GHSA-p569-737x-7h7p, UBUNTU-CVE-2018-5712.