CVE-2022-43396: Kylin Apache Kylin Vulnerable To Command Vulnerability

HIGH
Advisory Identifier: GHSA-f5q9-j9r2-34gq
CVSS 8.8
CWE-184 CWE-77
Published
Advisory Summary

CVE-2022-43396 is a HIGH (CVSS 8.8) apache kylin vulnerable to command vulnerability (CWE-184: Incomplete List of Disallowed Inputs) affecting Kylin libraries in the Maven ecosystem. The issue involves apache kylin vulnerable to command injection by useless configuration. Remediation is available by upgrading affected packages to version 4.0.3.

CVE-2022-43396 at a Glance

CVE Identifier CVE-2022-43396
GHSA Identifier GHSA-f5q9-j9r2-34gq
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-184: Incomplete List of Disallowed Inputs
Affected Product Kylin
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).

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-2022-43396

To remediate this vulnerability, upgrade all affected Kylin 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 fixed: 4.0.3
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin</artifactId>
    <version>4.0.3</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-43396, 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 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.3), 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-184: Incomplete List of Disallowed Inputs, where the product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete. In Kylin, 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 the fix for CVE-2022-24697, a blacklist is used to filter user input commands. But there is a risk of being bypassed. The user can control the command by controlling the `kylin.engine.spark-cmd` parameter of `conf`.

CVE-2022-43396 Affected Kylin Versions

1 component(s)
Fixed Versions:
4.0.3
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.kylin:kylin
Maven
≥ 2.0.0
< 4.0.3
4.0.3

References

Frequently Asked Questions

What is CVE-2022-43396?
CVE-2022-43396 is a security vulnerability in Kylin involving Apache Kylin vulnerable to Command injection by Useless configuration under CWE-184: Incomplete List of Disallowed Inputs.
Which Kylin versions are affected?
Affected versions include releases prior to 4.0.3 across affected packages: org.apache.kylin:kylin.
What version fixes CVE-2022-43396?
Upgrading to 4.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kylin affected?
Yes, org.apache.kylin:kylin is affected in releases prior to 4.0.3. Upgrade your dependency to 4.0.3 or later.
What is the CVSS score of CVE-2022-43396?
CVE-2022-43396 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.
What CWE is associated with CVE-2022-43396?
CVE-2022-43396 is classified under CWE-184: Incomplete List of Disallowed Inputs (The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.).
How can I check Maven dependencies for CVE-2022-43396?
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-f5q9-j9r2-34gq",
  "modified" : "2023-01-10T16:13:03Z",
  "published" : "2022-12-30T12:30:25Z",
  "aliases" : [ "CVE-2022-43396" ],
  "summary" : "Apache Kylin vulnerable to Command injection by Useless configuration",
  "details" : "In the fix for CVE-2022-24697, a blacklist is used to filter user input commands. But there is a risk of being bypassed. The user can control the command by controlling the `kylin.engine.spark-cmd` parameter of `conf`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "4.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-43396"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/kylin/pull/2011"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/ob2ks04zl5ms0r44cd74y1xdl1rzfd1r"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-184", "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-03T12:34:52Z",
    "nvd_published_at" : "2022-12-30T11:15:00Z"
  }
}