CVE-2024-42468 Path traversal (CometVisu)

Medium 5.3 Published Updated

Unauthenticated attackers can read local server files via path traversal in the CometVisuServlet of openHAB.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42468?

CVE-2024-42468 is a medium-severity path traversal vulnerability in openhab-webui, published on 9 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

openHAB, a provider of open-source home automation software, has add-ons including the visualization add-on CometVisu. CometVisuServlet in versions prior to 4.2.1 is susceptible to an unauthenticated path traversal vulnerability. Local files on the server can be requested via HTTP GET on the CometVisuServlet. This issue may lead to information disclosure. Users should upgrade to version 4.2.1 of the CometVisu add-on of openHAB to receive a patch.

Weakness: CWE-22

Which versions are affected by CVE-2024-42468?

2 open source packages ship an affected version, including org.openhab.ui.bundles:org.openhab.ui.cometvisu. It affects 1 product.

PackageAffectedFixed in
org.openhab.ui.bundles:org.openhab.ui.cometvisu MavenAll versions4.2.1
org.openhab.ui.bundles:org.openhab.ui.cometvisu MavenAll versions4.2.1

Products include Openhab Openhab.

How do I fix CVE-2024-42468?

Upgrade org.openhab.ui.bundles:org.openhab.ui.cometvisu to 4.2.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-42468 being exploited?

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

Sources

Also known as GHSA-pcwp-26pw-j98w.

Is CVE-2024-42468 in your software?

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

Check your SBOMs for free