CVE-2020-5242 openHAB exec add-ons allow remote arbitrary command execution

High 7.7 Published Updated

Remote attackers can install EXEC add-ons via REST calls to execute arbitrary commands on the openHAB server.

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
None listed

What is CVE-2020-5242?

CVE-2020-5242 is a high-severity command injection vulnerability in openhab-addons, published on 20 Feb 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

openHAB before 2.5.2 allow a remote attacker to use REST calls to install the EXEC binding or EXEC transformation service and execute arbitrary commands on the system with the privileges of the user running openHAB. Starting with version 2.5.2 all commands need to be whitelisted in a local file which cannot be changed via REST calls.

Weakness: CWE-863, CWE-284

Which versions are affected by CVE-2020-5242?

It affects 1 product.

Products include Openhab Openhab.

How do I fix CVE-2020-5242?

No fix has been published for CVE-2020-5242 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-5242 being exploited?

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

Sources

Also known as GHSA-w698-693g-23hv.

Is CVE-2020-5242 in your software?

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

Check your SBOMs for free