# CVE-2021-31522: Kylin can receive user input and load any class through Class.forName(...).

Source: https://junglewise.ai/threats/cve-2021-31522-kylin-can-receive-user-input-and-load-any-class-through-class  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-08  
License: CC BY 4.0 with a link back

CVE-2021-31522 · Severity: info · Published 2022-01-08

Kylin can receive user input and load any class through Class.forName(...).

Technologies: [org.apache.kylin:kylin (Maven)](https://junglewise.ai/threats/technologies/org-apache-kylin-kylin). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-31522 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-31522 being exploited in the wild.

**How severe is CVE-2021-31522?** Informational severity, published 8 January 2022.

**Which products and versions are affected?** org.apache.kylin:kylin (Maven) ECOSYSTEM:introduced=0,fixed=3.1.3.

**Is there a fix for CVE-2021-31522?** Yes. org.apache.kylin:kylin (Maven): upgrade to 3.1.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-31522?** Check whether you run org.apache.kylin:kylin (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.kylin:kylin (Maven): upgrade to 3.1.3 or later

  ```sh
  # set org.apache.kylin:kylin to 3.1.3 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.kylin:kylin (Maven) ECOSYSTEM:introduced=0,fixed=3.1.3

## Identifiers

- CVE-2021-31522
- GHSA-q656-g2x3-8cgh

## Related threats

- [Apache Kylin Files or Directories Accessible to External Parties](https://junglewise.ai/threats/cve-2025-61734-apache-kylin-files-or-directories-accessible-to-external-parties)
- [Apache Kylin Authentication Bypass Vulnerability](https://junglewise.ai/threats/cve-2025-61733-apache-kylin-authentication-bypass-vulnerability)
- [Apache Kylin Server-Side Request Forgery (SSRF) Vulnerability](https://junglewise.ai/threats/cve-2025-61735-apache-kylin-server-side-request-forgery-ssrf-vulnerability)
- [Apache Kylin Code Injection via JDBC Configuration Alteration](https://junglewise.ai/threats/cve-2025-30067-apache-kylin-code-injection-via-jdbc-configuration-alteration)
- [Apache Kylin Session Fixation vulnerability](https://junglewise.ai/threats/cve-2024-23590-apache-kylin-session-fixation-vulnerability)
