CVE-2018-5172 Cross-site scripting in Firefox
Attackers can execute arbitrary scripts in Firefox via clipboard injection in Live Bookmarks or PDF viewer, requiring user interaction.
- 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-5172?
CVE-2018-5172 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 11 Jun 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
The Live Bookmarks page and the PDF viewer can run injected script content if a user pastes script from the clipboard into them while viewing RSS feeds or PDF files. This could allow a malicious site to socially engineer a user to copy and paste malicious script content that could then run with the context of either page but does not allow for privilege escalation. This vulnerability affects Firefox < 60.
Weakness: CWE-79
Which versions are affected by CVE-2018-5172?
It affects 2 products.
Products include Canonical Ubuntu Linux, Mozilla Firefox.
How do I fix CVE-2018-5172?
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-5172 being exploited?
There is no known exploitation of CVE-2018-5172 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as GHSA-w752-w9m4-4289, UBUNTU-CVE-2018-5172.