Vulnerabilities in pkg:maven/org.opennms.features/org.opennms.features.measurements
PACKAGECVE-2021-3396 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-863: Incorrect Authorization) affecting Opennms libraries in the Maven ecosystem. The issue involves opennms horizon rce via jexl2 expression. Remediation is available by upgrading affected packages to version 27.0.4.
pkg:maven/org.opennms.features/org.opennms.features.measurements
Vulnerability advisories affecting package pkg:maven/org.opennms.features/org.opennms.features.measurements. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c3mp-9vx3-2rvv | CVE-2021-3396 | HIGH | OpenNMS Horizon RCE via JEXL2 expression |
CVE-2021-3396 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-3396
To remediate this vulnerability, upgrade all affected Opennms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms</artifactId>
<version>27.0.4</version>
</dependency>
<dependency>
<groupId>org.opennms.features</groupId>
<artifactId>org.opennms.features.measurements</artifactId>
<version>27.0.4</version>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-provision</artifactId>
<version>27.0.4</version>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-util</artifactId>
<version>27.0.4</version>
</dependency>
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-2021-3396, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 27.0.4), 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, 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
CVE-2021-3396 Affected Opennms Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.opennms:opennms
|
Maven |
≥ 16.0.0
< 27.0.4
|
27.0.4
|
|
org.opennms.features:org.opennms.features.measurements
|
Maven |
≥ 16.0.0
< 27.0.4
|
27.0.4
|
|
org.opennms:opennms-provision
|
Maven |
≥ 16.0.0
< 27.0.4
|
27.0.4
|
|
org.opennms:opennms-util
|
Maven |
≥ 16.0.0
< 27.0.4
|
27.0.4
|
References
Frequently Asked Questions
What is CVE-2021-3396?
Which Opennms versions are affected?
What version fixes CVE-2021-3396?
Is opennms affected?
Is org.opennms.features.measurements affected?
What is the CVSS score of CVE-2021-3396?
What CWE is associated with CVE-2021-3396?
How can I check Maven dependencies for CVE-2021-3396?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c3mp-9vx3-2rvv",
"modified" : "2023-07-11T00:13:01Z",
"published" : "2022-05-24T17:42:35Z",
"aliases" : [ "CVE-2021-3396" ],
"summary" : "OpenNMS Horizon RCE via JEXL2 expression",
"details" : "OpenNMS Meridian 2016, 2017, 2018 before 2018.1.25, 2019 before 2019.1.16, and 2020 before 2020.1.5, Horizon 1.2 through 27.0.4, and Newts <1.5.3 has Incorrect Access Control, which allows local and remote code execution using JEXL expressions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.opennms:opennms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "27.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 27.0.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.opennms.features:org.opennms.features.measurements"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "27.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 27.0.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.opennms:opennms-provision"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "27.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 27.0.3"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.opennms:opennms-util"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.0.0"
}, {
"fixed" : "27.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 27.0.3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3396"
}, {
"type" : "WEB",
"url" : "https://github.com/OpenNMS/opennms/pull/3281"
}, {
"type" : "WEB",
"url" : "https://issues.opennms.org/browse/NMS-13103"
}, {
"type" : "WEB",
"url" : "https://www.opennms.com/en/blog/2021-02-16-cve-2021-3396-full-security-disclosure"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-11T00:13:01Z",
"nvd_published_at" : "2021-02-17T21:15:00Z"
}
}