Vulnerabilities in pkg:maven/org.apache.kylin/kylin-server-base

PACKAGE
Advisory Identifier: GHSA-ppxx-m926-g569
Advisory Summary

CVE-2022-24697 is a CRITICAL (CVSS 9.8) remote code execution 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 apache kylin vulnerable to remote code execution. Remediation is available by upgrading affected packages to version 4.0.2.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.kylin/kylin-server-base

5 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-ppxx-m926-g569 CVE-2022-24697 CRITICAL Apache Kylin vulnerable to remote code execution
GHSA-w9rv-xmf7-x3gh CVE-2022-44621 CRITICAL Apache Kylin vulnerable to Command injection by Diagnosis Controller
GHSA-7hmh-8gwv-mfvq CVE-2020-1937 MODERATE SQL Injection in Kylin
GHSA-hx5g-8hq2-8x4w CVE-2020-13926 CRITICAL SQL Injection in Kylin
GHSA-qwfw-gxx2-mmv2 CVE-2020-13925 CRITICAL Command Injection in Kylin

CVE-2022-24697 at a Glance

CVE Identifier CVE-2022-24697
GHSA Identifier GHSA-ppxx-m926-g569
Severity CRITICAL
CVSS v3.1 Base Score 9.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: 9.8

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

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2022-24697

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: 4.0.2
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin-core-common</artifactId>
    <version>4.0.2</version>
</dependency>
org.apache.kylin:kylin-spark-project fixed: 4.0.2
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin-spark-project</artifactId>
    <version>4.0.2</version>
</dependency>
org.apache.kylin:kylin-server-base fixed: 4.0.2
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin-server-base</artifactId>
    <version>4.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-2022-24697, 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 4.0.2), 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's cube designer function has a command injection vulnerability when overwriting system parameters in the configuration overwrites menu. RCE can be implemented by closing the single quotation marks around the parameter value of “-- conf=” to inject any operating system command into the command line parameters. This vulnerability affects Kylin 2 version 2.6.5 and earlier, Kylin 3 version 3.1.2 and earlier, and Kylin 4 version 4.0.1 and earlier.

CVE-2022-24697 Affected Kylin core common Versions

3 component(s)
Fixed Versions:
4.0.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.kylin:kylin-core-common
Maven
< 4.0.2
4.0.2
org.apache.kylin:kylin-spark-project
Maven
< 4.0.2
4.0.2
org.apache.kylin:kylin-server-base
Maven
< 4.0.2
4.0.2

References

Frequently Asked Questions

What is CVE-2022-24697?
CVE-2022-24697 is a security vulnerability in Kylin core common involving Apache Kylin vulnerable to remote code execution 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 4.0.2 across affected packages: org.apache.kylin:kylin-core-common, org.apache.kylin:kylin-spark-project, org.apache.kylin:kylin-server-base.
What version fixes CVE-2022-24697?
Upgrading to 4.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 4.0.2. Upgrade your dependency to 4.0.2 or later.
Is kylin-spark-project affected?
Yes, org.apache.kylin:kylin-spark-project is affected in releases prior to 4.0.2. Upgrade your dependency to 4.0.2 or later.
What is the CVSS score of CVE-2022-24697?
CVE-2022-24697 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-24697?
CVE-2022-24697 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-2022-24697?
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-ppxx-m926-g569",
  "modified" : "2025-05-16T22:12:11Z",
  "published" : "2023-07-06T19:24:01Z",
  "aliases" : [ "CVE-2022-24697" ],
  "summary" : "Apache Kylin vulnerable to remote code execution",
  "details" : "Kylin's cube designer function has a command injection vulnerability when overwriting system parameters in the configuration overwrites menu. RCE can be implemented by closing the single quotation marks around the parameter value of “-- conf=” to inject any operating system command into the command line parameters. This vulnerability affects Kylin 2 version 2.6.5 and earlier, Kylin 3 version 3.1.2 and earlier, and Kylin 4 version 4.0.1 and earlier.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin-core-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin-spark-project"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin-server-base"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24697"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/kylin/pull/1811"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/kylin"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/07mnn9c7o314wrhrwjr10w9j5s82voj4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2022/12/30/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77", "CWE-78" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-06T21:23:09Z",
    "nvd_published_at" : "2022-10-13T13:15:00Z"
  }
}