CVE-2018-3824 Elasticsearch subject to cross site scripting

Medium 6.1 Published Updated

Attackers can inject malicious scripts into Machine Learning job results, allowing them to steal sensitive information or perform destructive actions on behalf of other users.

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

CVE-2018-3824 is a medium-severity cross-site scripting vulnerability in Elasticsearch X-Pack Machine Learning, published on 19 Sep 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

X-Pack Machine Learning versions before 6.2.4 and 5.6.9 had a cross-site scripting (XSS) vulnerability. If an attacker is able to inject data into an index that has a ML job running against it, then when another user views the results of the ML job it could allow the attacker to obtain sensitive information from or perform destructive actions on behalf of that other ML user.

Weakness: CWE-79

Which versions are affected by CVE-2018-3824?

4 open source packages ship an affected version, including org.elasticsearch:elasticsearch. It affects 3 products.

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenAll versions5.6.9
org.elasticsearch:elasticsearch MavenAll versions5.6.9
org.elasticsearch:elasticsearch MavenFrom 6.0.06.2.4
org.elasticsearch:elasticsearch MavenFrom 6.0.06.2.4

Products include Elastic Elasticsearch X-Pack, Elastic Kibana X-Pack, Elastic Logstash X-Pack.

How do I fix CVE-2018-3824?

Upgrade org.elasticsearch:elasticsearch to a fixed version for your release line: 5.6.9 or 6.2.4.

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

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

Sources

Also known as GHSA-mjpc-qx7h-r8c9.

Is CVE-2018-3824 in your software?

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

Check your SBOMs for free