Vulnerabilities in pkg:maven/org.apache.flink/flink-core

PACKAGE
Advisory Identifier: GHSA-6g88-99wj-8mgg
Advisory Summary

CVE-2020-1960 is a MODERATE (CVSS 4.7) command injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Flink core libraries in the Maven ecosystem. The issue involves command injection in apache flink. Remediation is available by upgrading affected packages to version 1.9.3, 1.10.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.flink/flink-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.flink/flink-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6g88-99wj-8mgg CVE-2020-1960 MODERATE Command injection in Apache Flink

CVE-2020-1960 at a Glance

CVE Identifier CVE-2020-1960
GHSA Identifier GHSA-6g88-99wj-8mgg
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Flink core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.7

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

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
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-1960

To remediate this vulnerability, upgrade all affected Flink 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.flink:flink-core fixed: 1.9.3
<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-core</artifactId>
    <version>1.9.3</version>
</dependency>
org.apache.flink:flink-core fixed: 1.10.1
<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-core</artifactId>
    <version>1.10.1</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.flink

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.flink 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Flink 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

A vulnerability in Apache Flink where, when running a process with an enabled JMXReporter, with a port configured via metrics.reporter.reporter_name>.port, an attacker with local access to the machine and JMX port can execute a man-in-the-middle attack using a specially crafted request to rebind the JMXRMI registry to one under the attacker's control. This compromises any connection established to the process via JMX, allowing extraction of credentials and any other transferred data.

CVE-2020-1960 Affected Flink core Versions

2 component(s)
Fixed Versions:
1.9.31.10.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.flink:flink-core
Maven
< 1.9.3
1.9.3
org.apache.flink:flink-core
Maven
≥ 1.10.0
< 1.10.1
All 1 versions
1.10.0
1.10.1

References

Frequently Asked Questions

What is CVE-2020-1960?
CVE-2020-1960 is a security vulnerability in Flink core involving Command injection in Apache Flink under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Flink core versions are affected?
Affected versions include releases prior to 1.9.3, 1.10.1 across affected packages: org.apache.flink:flink-core.
What version fixes CVE-2020-1960?
Upgrading to 1.9.3, 1.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is flink-core affected?
Yes, org.apache.flink:flink-core is affected in releases prior to 1.9.3, 1.10.1. Upgrade your dependency to 1.9.3, 1.10.1 or later.
What is the CVSS score of CVE-2020-1960?
CVE-2020-1960 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-1960?
CVE-2020-1960 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2020-1960?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.flink'. 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-6g88-99wj-8mgg",
  "modified" : "2021-05-21T18:41:46Z",
  "published" : "2021-05-21T19:20:35Z",
  "aliases" : [ "CVE-2020-1960" ],
  "summary" : "Command injection in Apache Flink",
  "details" : "A vulnerability in Apache Flink where, when running a process with an enabled JMXReporter, with a port configured via metrics.reporter.reporter_name>.port, an attacker with local access to the machine and JMX port can execute a man-in-the-middle attack using a specially crafted request to rebind the JMXRMI registry to one under the attacker's control. This compromises any connection established to the process via JMX, allowing extraction of credentials and any other transferred data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.flink:flink-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.9.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.flink:flink-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.10.0"
      }, {
        "fixed" : "1.10.1"
      } ]
    } ],
    "versions" : [ "1.10.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1960"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r23e559dee1e69741557b5fe431846de1f1a5981356d0ddb9482df88a%40%3Cdev.flink.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r26fcdd4fe288323006253437ebc4dd6fdfadfb5e93465a0e4f68420d@%3Cuser-zh.flink.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r28f17e564950d663e68cc6fe75756012dda62ac623766bb9bc5e7034@%3Cissues.flink.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r663cf0d5c386bba2f562d45ad484d786151a84f0b95e45e2b0fb8e50@%3Cissues.flink.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-21T18:41:46Z",
    "nvd_published_at" : "2020-05-14T17:15:00Z"
  }
}