CVE-2025-30067: Kylin Apache Kylin Code Injection Vulnerability

LOW
Advisory Identifier: GHSA-29m8-wh9p-5wc4
CWE-94
Published
Advisory Summary

CVE-2025-30067 is a LOW apache kylin code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Kylin libraries in the Maven ecosystem. The issue involves apache kylin code injection via jdbc configuration alteration. Remediation is available by upgrading affected packages to version 5.0.2.

CVE-2025-30067 at a Glance

CVE Identifier CVE-2025-30067
GHSA Identifier GHSA-29m8-wh9p-5wc4
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Kylin
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-30067

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: 5.0.2
<dependency>
    <groupId>org.apache.kylin</groupId>
    <artifactId>kylin</artifactId>
    <version>5.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-2025-30067, 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 5.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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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

Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Kylin. If an attacker gets access to Kylin's system or project admin permission, the JDBC connection configuration maybe altered to execute arbitrary code from the remote. You are fine as long as the Kylin's system and project admin access is well protected. This issue affects Apache Kylin: from 4.0.0 through 5.0.1. Users are recommended to upgrade to version 5.0.2 or above, which fixes the issue.

CVE-2025-30067 Affected Kylin Versions

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

References

Frequently Asked Questions

What is CVE-2025-30067?
CVE-2025-30067 is a security vulnerability in Kylin involving Apache Kylin Code Injection via JDBC Configuration Alteration under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Kylin versions are affected?
Affected versions include releases prior to 5.0.2 across affected packages: org.apache.kylin:kylin.
What version fixes CVE-2025-30067?
Upgrading to 5.0.2 (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 5.0.2. Upgrade your dependency to 5.0.2 or later.
What CWE is associated with CVE-2025-30067?
CVE-2025-30067 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2025-30067?
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-29m8-wh9p-5wc4",
  "modified" : "2025-03-27T18:18:39Z",
  "published" : "2025-03-27T15:31:14Z",
  "aliases" : [ "CVE-2025-30067" ],
  "summary" : "Apache Kylin Code Injection via JDBC Configuration Alteration",
  "details" : "Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Kylin. \nIf an attacker gets access to Kylin's system or project admin permission, the JDBC connection configuration maybe altered to execute arbitrary code from the remote. You are fine as long as the Kylin's system and project admin access is well protected.\n\nThis issue affects Apache Kylin: from 4.0.0 through 5.0.1.\n\nUsers are recommended to upgrade to version 5.0.2 or above, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.kylin:kylin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "5.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30067"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/kylin/commit/21d98f3ef29f71b50dacabbf039905f9f0f71b95"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/kylin"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/KYLIN-5994"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/6j19pt8yoqfphf1lprtrzoqkvz1gwbnc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-27T18:18:39Z",
    "nvd_published_at" : "2025-03-27T15:16:02Z"
  }
}