CVE-2024-42470: Org.openhab.ui.cometvisu CometVisu Backend For OpenHAB Has Vulnerability

MODERATE
Advisory Identifier: GHSA-3g4c-hjhr-73rj
CVSS 6.5
CWE-862
Published
Advisory Summary

CVE-2024-42470 is a MODERATE (CVSS 6.5) cometvisu backend for openhab has vulnerability (CWE-862: Missing Authorization) affecting Org.openhab.ui.cometvisu libraries in the Maven ecosystem. The issue involves cometvisu backend for openhab has a sensitive information disclosure vulnerability. Remediation is available by upgrading affected packages to version 4.2.1.

CVE-2024-42470 at a Glance

CVE Identifier CVE-2024-42470
GHSA Identifier GHSA-3g4c-hjhr-73rj
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-862: Missing Authorization
Affected Product Org.openhab.ui.cometvisu
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-42470

To remediate this vulnerability, upgrade all affected Org.openhab.ui.cometvisu dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.openhab.ui.bundles:org.openhab.ui.cometvisu fixed: 4.2.1
<dependency>
    <groupId>org.openhab.ui.bundles</groupId>
    <artifactId>org.openhab.ui.cometvisu</artifactId>
    <version>4.2.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.openhab.ui.bundles

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-42470, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.openhab.ui.bundles

Analyze the terminal output to locate any version of Org.openhab.ui.cometvisu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.openhab.ui.bundles command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Org.openhab.ui.cometvisu, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Several endpoints in the CometVisu add-on of openHAB don't require authentication. This makes it possible for unauthenticated attackers to modify or to steal sensitive data. ## Impact This issue may lead to sensitive Information Disclosure.

CVE-2024-42470 Affected Org.openhab.ui.cometvisu Versions

1 component(s)
Fixed Versions:
4.2.1
Product / Package Ecosystem Affected Versions Fixed Version
org.openhab.ui.bundles:org.openhab.ui.cometvisu
Maven
< 4.2.1
4.2.1

References

Frequently Asked Questions

What is CVE-2024-42470?
CVE-2024-42470 is a security vulnerability in Org.openhab.ui.cometvisu involving CometVisu Backend for openHAB has a sensitive information disclosure vulnerability under CWE-862: Missing Authorization.
Which Org.openhab.ui.cometvisu versions are affected?
Affected versions include releases prior to 4.2.1 across affected packages: org.openhab.ui.bundles:org.openhab.ui.cometvisu.
What version fixes CVE-2024-42470?
Upgrading to 4.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.openhab.ui.cometvisu affected?
Yes, org.openhab.ui.bundles:org.openhab.ui.cometvisu is affected in releases prior to 4.2.1. Upgrade your dependency to 4.2.1 or later.
What is the CVSS score of CVE-2024-42470?
CVE-2024-42470 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-42470?
CVE-2024-42470 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2024-42470?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.openhab.ui.bundles'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3g4c-hjhr-73rj",
  "modified" : "2024-08-12T16:01:17Z",
  "published" : "2024-08-09T18:21:22Z",
  "aliases" : [ "CVE-2024-42470" ],
  "summary" : "CometVisu Backend for openHAB has a sensitive information disclosure vulnerability",
  "details" : "Several endpoints in the CometVisu add-on of openHAB don't require authentication. This makes it possible for unauthenticated attackers to modify or to steal sensitive data.\n\n## Impact\n\nThis issue may lead to sensitive Information Disclosure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.openhab.ui.bundles:org.openhab.ui.cometvisu"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.2.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openhab/openhab-webui/security/advisories/GHSA-3g4c-hjhr-73rj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-42470"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openhab/openhab-webui/commit/630e8525835c698cf58856aa43782d92b18087f2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openhab/openhab-webui"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-09T18:21:22Z",
    "nvd_published_at" : "2024-08-12T13:38:35Z"
  }
}