Apache Kylin
Apache Kylin OS Command Injection Vulnerability
Apache Kylin 2.3.0, and releases up to 2.6.5 and 3.0.1 has some restful apis which will concatenate os command with the user input string, a user is likely to be able to execute any os command without any protection or validation.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- < 2.6.6
Fixed in 2.6.6
from GitHub Security Advisory GHSA-gprm-xqrc-c2j3
- >= 3.0.0, < 3.0.2
Fixed in 3.0.2
from GitHub Security Advisory GHSA-gprm-xqrc-c2j3
Mitigation
Upgrade org.apache.kylin:kylin-core-common to 2.6.6 or later.
Upgrade org.apache.kylin:kylin-core-common to 3.0.2 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.1 years after publication; added to CISA KEV 1.8 years after publication. First PoC: b510/CVE-2020-1956 (created 8 Jul 2021, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| b510/CVE-2020-1956 | 8 Jul 2021 +1.1 y | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Apache Kylin 3.0.1 - Command Injection Vulnerability | 11 May 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /kylin/api/cubes/
- Seen in
- 1 repo: b510/CVE-2020-1956
- Evidence
- b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:24
POST /kylin/api/cubes/{var}/{var}/migrate
- Seen in
- 1 repo: b510/CVE-2020-1956
- Evidence
- b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:28
POST /kylin/api/user/authentication
- Key headers
Accept: application/json, text/plain, */*Accept-Language: en-US,en;q=0.5Authorization: Basic {var}Cache-Control: no-cacheCookie: project=nullPragma: no-cacheReferer: {var}/kylin/login- Content-Type
application/json;charset=utf-8- Seen in
- 1 repo: b510/CVE-2020-1956
- Evidence
- b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:50
PUT /kylin/api/cubes/
- Key headers
Accept: application/json, text/plain, */*Accept-Language: en-US,en;q=0.5Authorization: Basic {var}Cache-Control: no-cacheCookie: project=nullPragma: no-cacheReferer: {var}/kylin/login- Content-Type
application/json;charset=utf-8- Seen in
- 1 repo: b510/CVE-2020-1956
- Evidence
- b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:75 b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:77
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/kylin/api/cubes/(?:[?#].*)?$
(?i)^/kylin/api/cubes/[^/?#]*/[^/?#]*/migrate(?:[?#].*)?$
(?i)^/kylin/api/user/authentication(?:[?#].*)?$
(?i)^/kylin/api/cubes/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/kylin/api/cubes/"; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9030527; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/kylin/api/cubes/"; http.uri; content:"/migrate"; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9377934; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/kylin/api/user/authentication"; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Authorization: Basic "; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cookie: project=null"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header_names; content:"Referer"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9704306; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/kylin/api/cubes/"; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Authorization: Basic "; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cookie: project=null"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header_names; content:"Referer"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9028378; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9030527
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/kylin/api/cubes/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.1956
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9377934
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/kylin/api/cubes/'
- '/migrate'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.1956
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9704306
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/kylin/api/user/authentication'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.1956
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9028378
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/kylin/api/cubes/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2020.1956