Skip to content

Exec add-ons allow remote arbitrary command execution

High
kaikreuzer published GHSA-w698-693g-23hv Feb 20, 2020

Package

org.openhab.binding.exec (osgi)

Affected versions

<2.5.2

Patched versions

2.5.2

Description

Impact

Remote attacker could 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.

Patches

Starting with version 2.5.2 all commands need to be whitelisted in a local file which cannot be changed via REST calls.

Workarounds

If upgrading is not possible it is recommended to use firewall rules to restrict access to the REST API.

For more information

If you have any questions or comments about this advisory:

Severity

High

CVE ID

CVE-2020-5242

Weaknesses

No CWEs