CVE-2023-0872: Opennms webapp rest OpenNMS Privilege Elevation Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-w5gq-xrrp-3fxf
CVSS 8.2
CWE-269
Published
Advisory Summary

CVE-2023-0872 is a HIGH (CVSS 8.2) opennms privilege elevation vulnerability vulnerability (CWE-269: Improper Privilege Management) affecting Opennms webapp rest libraries in the Maven ecosystem. The issue involves opennms privilege elevation vulnerability. Remediation is available by upgrading affected packages to version 32.0.2.

CVE-2023-0872 at a Glance

CVE Identifier CVE-2023-0872
GHSA Identifier GHSA-w5gq-xrrp-3fxf
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-269: Improper Privilege Management
Affected Product Opennms webapp rest
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.2

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

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2023-0872

To remediate this vulnerability, upgrade all affected Opennms webapp rest 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.opennms:opennms-webapp-rest fixed: 32.0.2
<dependency>
    <groupId>org.opennms</groupId>
    <artifactId>opennms-webapp-rest</artifactId>
    <version>32.0.2</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.opennms

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.opennms

Analyze the terminal output to locate any version of Opennms webapp rest in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 32.0.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.opennms 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Opennms webapp rest, 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

The Horizon REST API includes a users endpoint in OpenNMS Horizon 31.0.8 and versions earlier than 32.0.2 on multiple platforms is vulnerable to elevation of privilege. The solution is to upgrade to Meridian 2023.1.6, 2022.1.19, 2021.1.30, 2020.1.38 or Horizon 32.0.2 or newer. Meridian and Horizon installation instructions state that they are intended for installation within an organization's private networks and should not be directly accessible from the Internet. OpenNMS thanks Erik Wynter for reporting this issue.

CVE-2023-0872 Affected Opennms webapp rest Versions

1 component(s)
Fixed Versions:
32.0.2
Product / Package Ecosystem Affected Versions Fixed Version
org.opennms:opennms-webapp-rest
Maven
≥ 31.0.8
< 32.0.2
32.0.2

References

Frequently Asked Questions

What is CVE-2023-0872?
CVE-2023-0872 is a security vulnerability in Opennms webapp rest involving OpenNMS privilege elevation vulnerability under CWE-269: Improper Privilege Management.
Which Opennms webapp rest versions are affected?
Affected versions include releases prior to 32.0.2 across affected packages: org.opennms:opennms-webapp-rest.
What version fixes CVE-2023-0872?
Upgrading to 32.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opennms-webapp-rest affected?
Yes, org.opennms:opennms-webapp-rest is affected in releases prior to 32.0.2. Upgrade your dependency to 32.0.2 or later.
What is the CVSS score of CVE-2023-0872?
CVE-2023-0872 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L.
What CWE is associated with CVE-2023-0872?
CVE-2023-0872 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Maven dependencies for CVE-2023-0872?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opennms'. 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-w5gq-xrrp-3fxf",
  "modified" : "2023-08-21T19:33:09Z",
  "published" : "2023-08-14T18:32:59Z",
  "aliases" : [ "CVE-2023-0872" ],
  "summary" : "OpenNMS privilege elevation vulnerability",
  "details" : "The Horizon REST API includes a users endpoint in OpenNMS Horizon 31.0.8 and versions earlier than 32.0.2 on multiple platforms is vulnerable to elevation of privilege. The solution is to upgrade to Meridian 2023.1.6, 2022.1.19, 2021.1.30, 2020.1.38 or Horizon 32.0.2 or newer. Meridian and Horizon installation instructions state that they are intended for installation within an organization's private networks and should not be directly accessible from the Internet.\n\nOpenNMS thanks Erik Wynter for reporting this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opennms:opennms-webapp-rest"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "31.0.8"
      }, {
        "fixed" : "32.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0872"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenNMS/opennms/pull/6354"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenNMS/opennms/commit/e59b0ddd164cf0598ac0294d11a2d677d9e310b8"
  }, {
    "type" : "WEB",
    "url" : "https://docs.opennms.com/horizon/32/releasenotes/changelog.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenNMS/opennms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-14T21:12:00Z",
    "nvd_published_at" : "2023-08-14T18:15:10Z"
  }
}