Vulnerabilities in pkg:maven/org.apache.nifi.registry/nifi-registry-web-api
PACKAGECVE-2020-9482 is a MODERATE (CVSS 6.5) insufficient session expiration vulnerability (CWE-613: Insufficient Session Expiration) affecting Nifi registry web api libraries in the Maven ecosystem. The issue involves insufficient session expiration in apache nifi registry. Remediation is available by upgrading affected packages to version 0.7.0.
pkg:maven/org.apache.nifi.registry/nifi-registry-web-api
Vulnerability advisories affecting package pkg:maven/org.apache.nifi.registry/nifi-registry-web-api. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rcwj-2hj2-vmjj | CVE-2020-9482 | MODERATE | Insufficient Session Expiration in Apache NiFi Registry |
CVE-2020-9482 at a Glance
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).
How to Fix CVE-2020-9482
To remediate this vulnerability, upgrade all affected Nifi registry web api 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.apache.nifi.registry</groupId>
<artifactId>nifi-registry-web-api</artifactId>
<version>0.7.0</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.apache.nifi.registry
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-9482, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.nifi.registry
Analyze the terminal output to locate any version of Nifi registry web api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.nifi.registry 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Nifi registry web api, 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-2020-9482 Affected Nifi registry web api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.nifi.registry:nifi-registry-web-api
|
Maven |
≥ 0.1.0
< 0.7.0
|
0.7.0
|
References
Frequently Asked Questions
What is CVE-2020-9482?
Which Nifi registry web api versions are affected?
What version fixes CVE-2020-9482?
Is nifi-registry-web-api affected?
What is the CVSS score of CVE-2020-9482?
What CWE is associated with CVE-2020-9482?
How can I check Maven dependencies for CVE-2020-9482?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rcwj-2hj2-vmjj",
"modified" : "2022-02-09T00:23:06Z",
"published" : "2022-02-09T00:23:06Z",
"aliases" : [ "CVE-2020-9482" ],
"summary" : "Insufficient Session Expiration in Apache NiFi Registry",
"details" : "If NiFi Registry 0.1.0 to 0.5.0 uses an authentication mechanism other than PKI, when the user clicks Log Out, NiFi Registry invalidates the authentication token on the client side but not on the server side. This permits the user's client-side token to be used for up to 12 hours after logging out to make API requests to NiFi Registry.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.nifi.registry:nifi-registry-web-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.0"
}, {
"fixed" : "0.7.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-9482"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/nifi-registry/pull/259/commits/32f9352465e877d71ad7f85b70f2304ba620e133#diff-a72e640a2c41fe6fe8848066f6a588da2e9e76350bef287d7e145a231042c485"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/nifi-registry/pull/277/files/9f7f1c1b1095e3facdaa986435fa94eff78627dd"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/nifi-registry/commit/2881e29dce3a179f3e56069b82ef8cbb7bd8d85c"
}, {
"type" : "WEB",
"url" : "https://nifi.apache.org/registry-security.html#CVE-2020-9482"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-03-29T18:36:05Z",
"nvd_published_at" : "2020-04-28T19:15:00Z"
}
}