CVE-2018-5164 Cross-site scripting in Firefox

Medium 6.1 Published Updated

An attacker can execute scripts in Firefox by bypassing Content Security Policy via multipart content, leading to cross-site scripting attacks.

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-5164?

CVE-2018-5164 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

Content Security Policy (CSP) is not applied correctly to all parts of multipart content sent with the "multipart/x-mixed-replace" MIME type. This could allow for script to run where CSP should block it, allowing for cross-site scripting (XSS) and other attacks. This vulnerability affects Firefox < 60.

Weakness: CWE-79

Which versions are affected by CVE-2018-5164?

It affects 2 products.

Products include Canonical Ubuntu Linux, Mozilla Firefox.

How do I fix CVE-2018-5164?

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-5164 being exploited?

There is no known exploitation of CVE-2018-5164 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-qqvm-q62q-qw92, UBUNTU-CVE-2018-5164.

Is CVE-2018-5164 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free