Vulnerabilities in pkg:maven/org.apache.kylin/kylin-server-base
PACKAGECVE-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.
pkg:maven/org.apache.kylin/kylin-server-base
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
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).
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.
<dependency>
<groupId>org.apache.kylin</groupId>
<artifactId>kylin-core-common</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.kylin</groupId>
<artifactId>kylin-spark-project</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.kylin</groupId>
<artifactId>kylin-server-base</artifactId>
<version>4.0.2</version>
</dependency>
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
CVE-2022-24697 Affected Kylin core common Versions
3 component(s)| 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?
Which Kylin core common versions are affected?
What version fixes CVE-2022-24697?
Is kylin-core-common affected?
Is kylin-spark-project affected?
What is the CVSS score of CVE-2022-24697?
What CWE is associated with CVE-2022-24697?
How can I check Maven dependencies for CVE-2022-24697?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}