CVE-2018-16861 Cross-site scripting in foreman

High 7.6 Published Updated

An attacker with specific menu privileges can execute XSS attacks to run malicious code and steal anti-CSRF tokens from higher-privileged users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-16861?

CVE-2018-16861 is a high-severity cross-site scripting vulnerability in Theforeman Foreman, published on 7 Dec 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A cross-site scripting (XSS) flaw was found in the foreman component of satellite. An attacker with privilege to create entries using the Hosts, Monitor, Infrastructure, or Administer Menus is able to execute a XSS attacks against other users, possibly leading to malicious code execution and extraction of the anti-CSRF token of higher privileged users. Foreman before 1.18.3, 1.19.1, and 1.20.0 are vulnerable.

Weakness: CWE-79

Which versions are affected by CVE-2018-16861?

It affects 1 product.

Products include Theforeman Foreman.

How do I fix CVE-2018-16861?

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

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

All Theforeman Foreman vulnerabilities

Sources

Also known as GHSA-w3p6-8cgj-c9xc.

Is CVE-2018-16861 in your software?

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

Check your SBOMs for free