CVE-2020-27219 Cross-site Scripting in Eclipse Hawkbit

Medium 6.1 Published Updated

An attacker can inject malicious scripts via unescaped path attributes in 404 error responses, potentially leading to code execution in the browser context.

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-2020-27219?

CVE-2020-27219 is a medium-severity cross-site scripting vulnerability in The Eclipse Foundation Eclipse Hawkbit, published on 14 Jan 2021. 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

In all version of Eclipse Hawkbit prior to 0.3.0M7, the HTTP 404 (Not Found) JSON response body returned by the REST API may contain unsafe characters within the path attribute. Sending a POST request to a non existing resource will return the full path from the given URL unescaped to the client.

Weakness: CWE-79

Which versions are affected by CVE-2020-27219?

2 open source packages ship an affected version, including org.eclipse.hawkbit:hawkbit-parent. It affects 1 product.

PackageAffectedFixed in
org.eclipse.hawkbit:hawkbit-parent MavenAll versions0.3.0M7
org.eclipse.hawkbit:hawkbit-parent MavenAll versions0.3.0M7

Products include Eclipse Hawkbit.

How do I fix CVE-2020-27219?

Upgrade org.eclipse.hawkbit:hawkbit-parent to 0.3.0M7 or later.

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-2020-27219 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-rcvx-rmvf-mxch.

Is CVE-2020-27219 in your software?

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

Check your SBOMs for free