CVE-2021-31522: Apache Kylin - Arbitrary Class Loading

org.apache.kylin:kylin Updated 02 Oct 2025

Summary

08/01/2022
Yes i
Moderate
Not published

CVE-2021-31522: Kylin can receive user input and load any class through Class.forName(...). Affects org.apache.kylin:kylin across 2 version ranges.

< 3.1.3 >= 4.0.0, < 4.0.1

Fixed in 3.1.3 or 4.0.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Kylin is an open-source distributed analytics engine designed to provide SQL interface and multi-dimensional analysis (OLAP) on big data for data warehousing. It allows users to query large-scale datasets in real-time and provides various features for data modeling, cube building, and query optimization. However, a vulnerability has been discovered in Apache Kylin that allows an attacker to load any class through user input.

Vulnerability Detail

The vulnerability in Apache Kylin arises from the ability to receive user input and load any class through the Class.forName(...) method. This can be exploited by an attacker to execute arbitrary code on the affected system. The issue affects Apache Kylin versions 2.6.6 and prior, 3.1.2 and prior, and 4.0.0 and prior.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.1.3 3.1.3
  • >= 4.0.0, < 4.0.1 4.0.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fixes as soon as possible.

Conclusion

The vulnerability in Apache Kylin allows an attacker to load any class through user input, potentially leading to remote code execution. It is crucial to upgrade to the fixed versions of Apache Kylin to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.kylin:kylin →

Share this vulnerability

FAQ

Apache Kylin is an open-source distributed analytics engine designed for big data analysis and OLAP on large-scale datasets.

This vulnerability allows an attacker to execute arbitrary code on the affected system, potentially leading to remote code execution and unauthorized access.

The vulnerability affects Apache Kylin versions 2.6.6 and prior, 3.1.2 and prior, and 4.0.0 and prior.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fixes.

To fix this vulnerability, upgrade to the fixed versions of Apache Kylin: 2.6.7 or later for 2.x, 3.1.3 or later for 3.x, and 4.0.1 or later for 4.x.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.kylin:kylin.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.1.3 3.1.3
  • >= 4.0.0, < 4.0.1 4.0.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback