CVE-2020-1942: Nifi framework core Insertion Of Sensitive Information Into Vulnerability

HIGH
Advisory Identifier: GHSA-7q8g-gpfp-v8gx
CVSS 7.5
CWE-532 CWE-200
Published
Advisory Summary

CVE-2020-1942 is a HIGH (CVSS 7.5) insertion of sensitive information into vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Nifi framework core libraries in the Maven ecosystem. The issue involves insertion of sensitive information into log file in apache nifi. Remediation is available by upgrading affected packages to version 1.12.0-RC1.

CVE-2020-1942 at a Glance

CVE Identifier CVE-2020-1942
GHSA Identifier GHSA-7q8g-gpfp-v8gx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Nifi framework core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-1942

To remediate this vulnerability, upgrade all affected Nifi framework core 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:nifi-framework-core fixed: 1.12.0-RC1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-framework-core</artifactId>
    <version>1.12.0-RC1</version>
</dependency>
org.apache.nifi:nifi-security-utils fixed: 1.12.0-RC1
<dependency>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nifi-security-utils</artifactId>
    <version>1.12.0-RC1</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

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.nifi

Analyze the terminal output to locate any version of Nifi framework core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.0-RC1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.nifi 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Nifi framework core, 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 Apache NiFi 0.0.1 to 1.11.0, the flow fingerprint factory generated flow fingerprints which included sensitive property descriptor values. In the event a node attempted to join a cluster and the cluster flow was not inheritable, the flow fingerprint of both the cluster and local flow was printed, potentially containing sensitive values in plaintext.

CVE-2020-1942 Affected Nifi framework core Versions

2 component(s)
Fixed Versions:
1.12.0-RC1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.nifi:nifi-framework-core
Maven
≥ 0.0.1
< 1.12.0-RC1
1.12.0-RC1
org.apache.nifi:nifi-security-utils
Maven
≥ 0.0.1
< 1.12.0-RC1
1.12.0-RC1

References

Frequently Asked Questions

What is CVE-2020-1942?
CVE-2020-1942 is a security vulnerability in Nifi framework core involving Insertion of Sensitive Information into Log File in Apache NiFi under CWE-532: Insertion of Sensitive Information into Log File.
Which Nifi framework core versions are affected?
Affected versions include releases prior to 1.12.0-RC1 across affected packages: org.apache.nifi:nifi-framework-core, org.apache.nifi:nifi-security-utils.
What version fixes CVE-2020-1942?
Upgrading to 1.12.0-RC1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nifi-framework-core affected?
Yes, org.apache.nifi:nifi-framework-core is affected in releases prior to 1.12.0-RC1. Upgrade your dependency to 1.12.0-RC1 or later.
Is nifi-security-utils affected?
Yes, org.apache.nifi:nifi-security-utils is affected in releases prior to 1.12.0-RC1. Upgrade your dependency to 1.12.0-RC1 or later.
What is the CVSS score of CVE-2020-1942?
CVE-2020-1942 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-1942?
CVE-2020-1942 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Maven dependencies for CVE-2020-1942?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.nifi'. 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-7q8g-gpfp-v8gx",
  "modified" : "2021-07-28T18:31:48Z",
  "published" : "2022-01-06T20:40:58Z",
  "aliases" : [ "CVE-2020-1942" ],
  "summary" : "Insertion of Sensitive Information into Log File in Apache NiFi",
  "details" : "In Apache NiFi 0.0.1 to 1.11.0, the flow fingerprint factory generated flow fingerprints which included sensitive property descriptor values. In the event a node attempted to join a cluster and the cluster flow was not inheritable, the flow fingerprint of both the cluster and local flow was printed, potentially containing sensitive values in plaintext.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.nifi:nifi-framework-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.1"
      }, {
        "fixed" : "1.12.0-RC1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.11.0"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.nifi:nifi-security-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.1"
      }, {
        "fixed" : "1.12.0-RC1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.11.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1942"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/nifi/pull/4028"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/nifi/commit/95746d346cddbd6134c4b28fdc39d5813a626f97"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/nifi/commit/d7c29f46378379fb596e4d1e59d1a3c41063db5b"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/NIFI-7079"
  }, {
    "type" : "WEB",
    "url" : "https://nifi.apache.org/security.html#CVE-2020-1942"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-29T15:49:09Z",
    "nvd_published_at" : "2020-02-11T21:15:00Z"
  }
}