# CVE-2021-31522: Apache Kylin unsafe class loading

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.00%, higher than 87% of CVEs (2026-12-01)
- Published: 2022-01-06T12:35:18.000Z
- Modified: 2026-06-17T03:51:57.340Z
- Also known as: GHSA-q656-g2x3-8cgh
- Weaknesses: CWE-470
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Kylin: from Apache Kylin 2 up to 2.6.6; from Apache Kylin 3 up to 3.1.2; from Apache Kylin 4 up to 4.0.0
- org.apache.kylin:kylin (Maven): before 3.1.3; from 4.0.0 before 4.0.1
- apache kylin: from 2.0.0 up to 2.6.6; from 3.0.0 before 3.1.3; 4.0.0

## Every score

- GitHub: rating Medium
- NVD: 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: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://lists.apache.org/thread/hh5crx3yr701zd8wtpqo1mww2rlkvznw> (patch, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/01/06/4> (mailing-list, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31522> (advisory)
- <https://github.com/apache/kylin/pull/1695> (web)
- <https://github.com/apache/kylin/pull/1763> (web)
- <https://github.com/apache/kylin> (package)

## Sources

- CVE List: [CVE-2021-31522](https://www.cve.org/CVERecord?id=CVE-2021-31522), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-q656-g2x3-8cgh](https://github.com/advisories/GHSA-q656-g2x3-8cgh), CC-BY-4.0, modified 2024-12-04
- NVD: [CVE-2021-31522](https://nvd.nist.gov/vuln/detail/CVE-2021-31522), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31522 · Whole record: https://cve.day/CVE-2021-31522.json · Rebuilt by cve.day 2026-11-25T22:58:06.412Z
