CVE-2020-1956: Kylin core common Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-gprm-xqrc-c2j3
CVSS 8.8
CWE-78
Published
Advisory Summary

CVE-2020-1956 is a HIGH (CVSS 8.8) command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Kylin core common libraries in the Maven ecosystem. The issue involves command injection in kylin. Remediation is available by upgrading affected packages to version 2.6.6, 3.0.2.

CVE-2020-1956 at a Glance

CVE Identifier CVE-2020-1956
GHSA Identifier GHSA-gprm-xqrc-c2j3
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Kylin core common
Package Ecosystem Maven
Published Date
Last Updated

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/E:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2020-1956

To remediate this vulnerability, upgrade all affected Kylin core common 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.kylin:kylin-core-common fixed: 2.6.6
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin-core-common</artifactId>
    <version>2.6.6</version>
</dependency>
org.apache.kylin:kylin-core-common fixed: 3.0.2
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin-core-common</artifactId>
    <version>3.0.2</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.kylin

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.kylin 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Kylin core common, 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

Kylin has some restful apis which will concatenate os command with the user input string, a user is likely to be able to execute any os command without any protection or validation.

CVE-2020-1956 Affected Kylin core common Versions

2 component(s)
Fixed Versions:
2.6.63.0.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.kylin:kylin-core-common
Maven
< 2.6.6
2.6.6
org.apache.kylin:kylin-core-common
Maven
≥ 3.0.0
< 3.0.2
3.0.2

References

NVD — CVE-2020-1956 NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-1956
Security Fix Commit FIX COMMIT
https://github.com/apache/kylin/commit/58fad56ac6aaa43c6bd8f962d7f2d84438664092
www.cisa.gov/known-exploited-vul... WEB
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-1956
snyk.io/vuln/snyk-java-orga... WEB
https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEKYLIN-570207
lists.apache.org/thread.html/r616667... WEB
https://lists.apache.org/thread.html/r61666760d8a4e8764b2d5fe158d8a48b569414480fbfadede574cdc0@%3Ccommits.kylin.apache.org%3E
lists.apache.org/thread.html/r616667... WEB
https://lists.apache.org/thread.html/r61666760d8a4e8764b2d5fe158d8a48b569414480fbfadede574cdc0%40%3Ccommits.kylin.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cuser.kylin.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cdev.kylin.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cannounce.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cuser.kylin.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cdev.kylin.apache.org%3E
lists.apache.org/thread.html/r250a86... WEB
https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cannounce.apache.org%3E
lists.apache.org/thread.html/r1332ef... WEB
https://lists.apache.org/thread.html/r1332ef34cf8e2c0589cf44ad269fb1fb4c06addec6297f0320f5111d%40%3Cuser.kylin.apache.org%3E
lists.apache.org/thread.html/r021baf... WEB
https://lists.apache.org/thread.html/r021baf9d8d4ae41e8c8332c167c4fa96c91b5086563d9be55d2d7acf@%3Ccommits.kylin.apache.org%3E
lists.apache.org/thread.html/r021baf... WEB
https://lists.apache.org/thread.html/r021baf9d8d4ae41e8c8332c167c4fa96c91b5086563d9be55d2d7acf%40%3Ccommits.kylin.apache.org%3E
Kylin core common Source Repository REPOSITORY
https://github.com/apache/kylin
community.sonarsource.com/t/apache-kylin-3-0-... WEB
https://community.sonarsource.com/t/apache-kylin-3-0-1-command-injection-vulnerability/25706
Kylin core common Security Information SECURITY
http://www.openwall.com/lists/oss-security/2020/07/14/1

Frequently Asked Questions

What is CVE-2020-1956?
CVE-2020-1956 is a security vulnerability in Kylin core common involving Command Injection in Kylin under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Kylin core common versions are affected?
Affected versions include releases prior to 2.6.6, 3.0.2 across affected packages: org.apache.kylin:kylin-core-common.
What version fixes CVE-2020-1956?
Upgrading to 2.6.6, 3.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kylin-core-common affected?
Yes, org.apache.kylin:kylin-core-common is affected in releases prior to 2.6.6, 3.0.2. Upgrade your dependency to 2.6.6, 3.0.2 or later.
What is the CVSS score of CVE-2020-1956?
CVE-2020-1956 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H.
What CWE is associated with CVE-2020-1956?
CVE-2020-1956 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Maven dependencies for CVE-2020-1956?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.kylin'. 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-gprm-xqrc-c2j3",
  "modified" : "2025-10-22T17:53:16Z",
  "published" : "2020-07-27T22:51:44Z",
  "aliases" : [ "CVE-2020-1956" ],
  "summary" : "Command Injection in Kylin",
  "details" : "Kylin has some restful apis which will concatenate os command with the user input string, a user is likely to be able to execute any os command without any protection or validation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin-core-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin-core-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1956"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/kylin/commit/58fad56ac6aaa43c6bd8f962d7f2d84438664092"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-1956"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEKYLIN-570207"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r61666760d8a4e8764b2d5fe158d8a48b569414480fbfadede574cdc0@%3Ccommits.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r61666760d8a4e8764b2d5fe158d8a48b569414480fbfadede574cdc0%40%3Ccommits.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cuser.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cdev.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb@%3Cannounce.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cuser.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cdev.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r250a867961cfd6e0506240a9c7eaee782d84c6ab0091c7c4bc45f3eb%40%3Cannounce.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r1332ef34cf8e2c0589cf44ad269fb1fb4c06addec6297f0320f5111d%40%3Cuser.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r021baf9d8d4ae41e8c8332c167c4fa96c91b5086563d9be55d2d7acf@%3Ccommits.kylin.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r021baf9d8d4ae41e8c8332c167c4fa96c91b5086563d9be55d2d7acf%40%3Ccommits.kylin.apache.org%3E"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/kylin"
  }, {
    "type" : "WEB",
    "url" : "https://community.sonarsource.com/t/apache-kylin-3-0-1-command-injection-vulnerability/25706"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/07/14/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-07-27T22:50:23Z",
    "nvd_published_at" : "2020-05-22T14:15:11Z"
  }
}