CVE-2023-40315: Opennms webapp rest OpenNMS Privilege Escalation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-hf5p-f83x-5q2g
CVSS 5.3
CWE-863
Published
Advisory Summary

CVE-2023-40315 is a MODERATE (CVSS 5.3) opennms privilege escalation vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Opennms webapp rest libraries in the Maven ecosystem. The issue involves opennms privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 32.0.2.

CVE-2023-40315 at a Glance

CVE Identifier CVE-2023-40315
GHSA Identifier GHSA-hf5p-f83x-5q2g
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-863: Incorrect Authorization
Affected Product Opennms webapp rest
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix CVE-2023-40315

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-40315, 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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

In OpenNMS Horizon 31.0.8 and versions earlier than 32.0.2 and related Meridian versions, any user that has the ROLE_FILESYSTEM_EDITOR can easily escalate their privileges to ROLE_ADMIN or any other role. The solution is to upgrade to Meridian 2023.1.5 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-40315 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-40315?
CVE-2023-40315 is a security vulnerability in Opennms webapp rest involving OpenNMS privilege escalation vulnerability under CWE-863: Incorrect Authorization.
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-40315?
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-40315?
CVE-2023-40315 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2023-40315?
CVE-2023-40315 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Maven dependencies for CVE-2023-40315?
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-hf5p-f83x-5q2g",
  "modified" : "2024-10-28T21:38:00Z",
  "published" : "2023-08-17T21:30:54Z",
  "aliases" : [ "CVE-2023-40315" ],
  "summary" : "OpenNMS privilege escalation vulnerability",
  "details" : "In OpenNMS Horizon 31.0.8 and versions earlier than 32.0.2 and related Meridian versions, any user that has the ROLE_FILESYSTEM_EDITOR can easily escalate their privileges to ROLE_ADMIN or any other role. The solution is to upgrade to Meridian 2023.1.5 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/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-40315"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenNMS/opennms/pull/6250"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenNMS/opennms/commit/f2caf7d0b9db58b59e98506490aaca37fbf243b6"
  }, {
    "type" : "WEB",
    "url" : "https://docs.opennms.com/meridian/2023/releasenotes/changelog.html#releasenotes-changelog-Meridian-2023.1.5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenNMS/opennms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-18T21:51:28Z",
    "nvd_published_at" : "2023-08-17T20:15:11Z"
  }
}