{
  "id": "CVE-2020-1956",
  "url": "https://poc.griffinguard.io/cve/CVE-2020-1956",
  "published_at": "2020-05-22T13:27:43Z",
  "title": "Apache Kylin OS Command Injection Vulnerability",
  "vendor": "Apache",
  "product": "Kylin",
  "cvss": {
    "score": 8.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-03-25",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 672
  },
  "first_poc": {
    "created_at": "2021-07-08T00:58:07Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 411.5,
    "repo": "b510/CVE-2020-1956",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cisa-adp": 8.8
  },
  "repos": [
    {
      "repo": "b510/CVE-2020-1956",
      "url": "https://github.com/b510/CVE-2020-1956",
      "created_at": "2021-07-08T00:58:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-02-13T12:24:14Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.kylin:kylin-core-common",
        "ranges": [
          "\u003c 2.6.6"
        ],
        "fixed_in": [
          "2.6.6"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-gprm-xqrc-c2j3"
      },
      {
        "vendor": "",
        "product": "org.apache.kylin:kylin-core-common",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.0.2"
        ],
        "fixed_in": [
          "3.0.2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-gprm-xqrc-c2j3"
      }
    ],
    "upgrade": [
      "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."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-1956.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Kylin 3.0.1 - Command Injection Vulnerability",
      "published_at": "2023-05-11T09:03:44Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/kylin/api/cubes/",
      "protocol": "http",
      "repos": [
        "b510/CVE-2020-1956"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:24"
      ]
    },
    {
      "method": "POST",
      "path_template": "/kylin/api/cubes/{var}/{var}/migrate",
      "protocol": "http",
      "repos": [
        "b510/CVE-2020-1956"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:28"
      ]
    },
    {
      "method": "POST",
      "path_template": "/kylin/api/user/authentication",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "en-US,en;q=0.5"
        },
        {
          "name": "Authorization",
          "value": "Basic {var}"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        },
        {
          "name": "Cookie",
          "value": "project=null"
        },
        {
          "name": "Pragma",
          "value": "no-cache"
        },
        {
          "name": "Referer",
          "value": "{var}/kylin/login"
        }
      ],
      "content_type": "application/json;charset=utf-8",
      "protocol": "http",
      "repos": [
        "b510/CVE-2020-1956"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:50"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/kylin/api/cubes/",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "en-US,en;q=0.5"
        },
        {
          "name": "Authorization",
          "value": "Basic {var}"
        },
        {
          "name": "Cache-Control",
          "value": "no-cache"
        },
        {
          "name": "Cookie",
          "value": "project=null"
        },
        {
          "name": "Pragma",
          "value": "no-cache"
        },
        {
          "name": "Referer",
          "value": "{var}/kylin/login"
        }
      ],
      "content_type": "application/json;charset=utf-8",
      "protocol": "http",
      "repos": [
        "b510/CVE-2020-1956"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:75",
        "b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:77"
      ]
    }
  ],
  "rules": []
}
