CVE-2020-9482: Nifi registry web api Insufficient Session Expiration Vulnerability

MODERATE
Advisory Identifier: GHSA-rcwj-2hj2-vmjj
CVSS 6.5
CWE-613
Published
Advisory Summary

CVE-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.

CVE-2020-9482 at a Glance

CVE Identifier CVE-2020-9482
GHSA Identifier GHSA-rcwj-2hj2-vmjj
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Nifi registry web api
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-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.

org.apache.nifi.registry:nifi-registry-web-api fixed: 0.7.0
<dependency>
    <groupId>org.apache.nifi.registry</groupId>
    <artifactId>nifi-registry-web-api</artifactId>
    <version>0.7.0</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.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

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.

CVE-2020-9482 Affected Nifi registry web api Versions

1 component(s)
Fixed Versions:
0.7.0
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?
CVE-2020-9482 is a security vulnerability in Nifi registry web api involving Insufficient Session Expiration in Apache NiFi Registry under CWE-613: Insufficient Session Expiration.
Which Nifi registry web api versions are affected?
Affected versions include releases prior to 0.7.0 across affected packages: org.apache.nifi.registry:nifi-registry-web-api.
What version fixes CVE-2020-9482?
Upgrading to 0.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nifi-registry-web-api affected?
Yes, org.apache.nifi.registry:nifi-registry-web-api is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
What is the CVSS score of CVE-2020-9482?
CVE-2020-9482 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-2020-9482?
CVE-2020-9482 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check Maven dependencies for CVE-2020-9482?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.nifi.registry'. 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-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"
  }
}