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

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.97%, higher than 81% of CVEs (2026-12-01)
- Published: 2020-02-20T22:55:13.000Z
- Modified: 2026-06-17T03:21:06.897Z
- Weaknesses: CWE-284, CWE-863
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openhab openhab-addons: < 2.5.2
- openhab openhab: before 2.5.2

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/openhab/openhab-addons/security/advisories/GHSA-w698-693g-23hv> (third-party-advisory)
- <https://github.com/openhab/openhab-addons/commit/4c4cb664f2e2c3866aadf117d22fb54aa8dd0031> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-5242](https://www.cve.org/CVERecord?id=CVE-2020-5242), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-5242](https://nvd.nist.gov/vuln/detail/CVE-2020-5242), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5242 · Whole record: https://cve.day/CVE-2020-5242.json · Rebuilt by cve.day 2026-11-25T22:57:50.944Z
