WaratekVRT Sign in

CVE-2021-31522 Apache Kylin

Affected softwareApache Kylin
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in3.1.3, 4.0.1
WeaknessUnsafe reflection (CWE-470)
Published6 Jan 2022
Updated17 Jun 2026

Description

Kylin can receive user input and load any class through Class.forName(...). This issue affects Apache Kylin 2 version 2.6.6 and prior versions; Apache Kylin 3 version 3.1.2 and prior versions; Apache Kylin 4 version 4.0.0 and prior versions.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 3.0% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR reflection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-470: Unsafe Reflection.

How to mitigate CVE-2021-31522

Upgrade Apache Kylin to a release that fixes it: 3.1.3 or 4.0.1. Until you can, Waratek RASP blocks exploitation with its reflection rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.kylin:kylin 0 3.1.3 unbounded
org.apache.kylin:kylin 4.0.0 4.0.1 unbounded

Products and versions

2 products, 7 version entries
SourceVendorProductSchemeAffected versions
nvd apache kylin generic ≥ 2.0.0 and ≤ 2.6.6 · ≥ 3.0.0 and < 3.1.3 · 4.0.0 · 4.0.0:alpha · 4.0.0:beta
osv org.apache.kylin kylin generic < 3.1.3 · ≥ 4.0.0 and < 4.0.1

References

URLTags
https://github.com/apache/kylin/pull/1695 WEB
https://github.com/apache/kylin/pull/1763 WEB
https://github.com/apache/kylin PACKAGE
https://lists.apache.org/thread/hh5crx3yr701zd8wtpqo1mww2rlkvznw WEB
http://www.openwall.com/lists/oss-security/2022/01/06/4 WEB

Timeline

Published2022-01-06By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.