{"schemaVersion":3,"id":"CVE-2021-31522","aliases":["GHSA-q656-g2x3-8cgh"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-01-06T12:35:18.000Z","modified":"2024-08-03T23:03:33.379Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02902,"percentile":0.86761,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02902},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02902,"percentile":0.86761}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02902,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02902,"percentile":0.86761}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')","description":"The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/470.html"}],"affected":[{"vendor":"apache software foundation","product":"apache kylin","name":"Apache Kylin","label":"apache kylin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ Apache Kylin 2, ≤ 2.6.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ Apache Kylin 3, ≤ 3.1.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ Apache Kylin 4, ≤ 4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache Kylin 2, ≤ 2.6.6 | ≥ Apache Kylin 3, ≤ 3.1.2 | ≥ Apache Kylin 4, ≤ 4.0.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_kylin"},{"vendor":"apache","product":"kylin","name":"Kylin","label":"kylin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.6.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.1.3","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0:alpha","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0:beta","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.6.6 | ≥ 3.0.0, < 3.1.3 | 4.0.0 | 4.0.0:alpha | 4.0.0:beta","eol":null,"hubHref":"/vendor/apache/kylin"},{"vendor":"org.apache.kylin","product":"kylin","name":"org.apache.kylin:kylin","label":"kylin","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.kylin/kylin","purlType":"maven","versions":[{"text":"< 3.1.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.3 | ≥ 4.0.0, < 4.0.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/hh5crx3yr701zd8wtpqo1mww2rlkvznw","label":"lists.apache.org/thread/hh5crx3yr701zd8wtpqo1mww2rlkvznw","hostname":"lists.apache.org","tags":["X Refsource MISC","WEB","Patch","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/06/4","label":"www.openwall.com/lists/oss-security/2022/01/06/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31522","label":"nvd.nist.gov/vuln/detail/CVE-2021-31522","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/kylin/pull/1695","label":"github.com/apache/kylin/pull/1695","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/kylin/pull/1763","label":"github.com/apache/kylin/pull/1763","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/kylin","label":"github.com/apache/kylin","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-01-06T12:35:18.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:03:33.379Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:11:45.727Z","stale":false,"partial":false}}