{
  "id": "CVE-2019-17558",
  "url": "https://poc.griffinguard.io/cve/CVE-2019-17558",
  "published_at": "2019-12-30T16:36:08Z",
  "title": "Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability",
  "vendor": "Apache",
  "product": "Apache Solr",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-11-03",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 674
  },
  "first_poc": {
    "created_at": "2019-11-01T00:00:00Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -59.7,
    "source": "exploitdb",
    "url": "https://www.exploit-db.com/exploits/47572"
  },
  "poc_repo_count": 3,
  "exploit_count": 4,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template can be provided through Velocity templates in a configset `velocity/` directory or as a parameter. A user defined configset could contain renderable, potentially malicious, templates. Parameter provided templates are disabled by default, but can be enabled by setting `params.resource.loader.enabled` by defining a response writer with that setting set to `true`. Defining a response writer requires configuration API access. Solr 8.4 removed the params resource loader entirely, and only enables the configset-provided template rendering when the configset is `trusted` (has been uploaded by an authenticated user).",
  "cwe": "CWE-74",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [
    {
      "repo": "thelostworldFree/CVE-2019-17558_Solr_Vul_Tool",
      "url": "https://github.com/thelostworldFree/CVE-2019-17558_Solr_Vul_Tool",
      "created_at": "2020-03-27T14:48:22Z",
      "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": "2017-01-07T06:57:55Z"
    },
    {
      "repo": "zhzyker/exphub",
      "url": "https://github.com/zhzyker/exphub",
      "created_at": "2020-04-01T09:33:35Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 4297,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2017-10-19T01:56:25Z"
    },
    {
      "repo": "Ma1Dong/Solr_CVE-2019-17558",
      "url": "https://github.com/Ma1Dong/Solr_CVE-2019-17558",
      "created_at": "2020-08-04T06:13:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-07-16T02:19:39Z"
    },
    {
      "repo": "xkyrage/Exploit_CVE-2019-17558-RCE",
      "url": "https://github.com/xkyrage/Exploit_CVE-2019-17558-RCE",
      "created_at": "2020-12-15T04:38:06Z",
      "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": "2019-11-03T11:51:28Z"
    },
    {
      "repo": "rogerzeferino/cve-2019-17558-apache-solr-rce",
      "url": "https://github.com/rogerzeferino/cve-2019-17558-apache-solr-rce",
      "created_at": "2026-02-16T22:39:05Z",
      "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": "2022-05-27T11:46:37Z"
    },
    {
      "repo": "CyberCTF/vulhub-solr-cve-2019-17558",
      "url": "https://github.com/CyberCTF/vulhub-solr-cve-2019-17558",
      "created_at": "2026-10-08T19:37:38Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-12-01T11:12:42Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.solr:solr-core",
        "ranges": [
          "\u003e= 5.0.0, \u003c 8.4.0"
        ],
        "fixed_in": [
          "8.4.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-ww97-9w65-2crx"
      },
      {
        "vendor": "",
        "product": "org.apache.solr:solr-core",
        "ranges": [
          "\u003e= 6.0.0, \u003c 8.4.0"
        ],
        "fixed_in": [
          "8.4.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-ww97-9w65-2crx"
      },
      {
        "vendor": "",
        "product": "org.apache.solr:solr-core",
        "ranges": [
          "\u003e= 7.0.0, \u003c 8.4.0"
        ],
        "fixed_in": [
          "8.4.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-ww97-9w65-2crx"
      },
      {
        "vendor": "",
        "product": "org.apache.solr:solr-core",
        "ranges": [
          "\u003e= 8.0.0, \u003c 8.4.0"
        ],
        "fixed_in": [
          "8.4.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-ww97-9w65-2crx"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.solr:solr-core to 8.4.0 or later.",
      "Upgrade org.apache.solr:solr-core to 8.4.0 or later.",
      "Upgrade org.apache.solr:solr-core to 8.4.0 or later.",
      "Upgrade org.apache.solr:solr-core to 8.4.0 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/47572",
      "source": "exploitdb",
      "title": "Apache Solr 8.2.0 - Remote Code Execution",
      "published_at": "2019-11-01T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/48338",
      "source": "exploitdb",
      "title": "Apache Solr - Remote Code Execution via Velocity Template (Metasploit)",
      "published_at": "2020-04-16T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/solr_velocity_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Apache Solr Remote Code Execution via Velocity Template (exploit/multi/http/solr_velocity_rce)",
      "published_at": "2020-01-31T05:29:04Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-17558.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Solr \u003c=8.3.1 - 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/admin/cores",
      "query_markers": [
        "indexInfo=false",
        "wt=json"
      ],
      "ports": [
        8080,
        8983
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-solr-cve-2019-17558",
        "Ma1Dong/Solr_CVE-2019-17558"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "CyberCTF/vulhub-solr-cve-2019-17558/checks/version.sh:5",
        "Ma1Dong/Solr_CVE-2019-17558/Solr_CVE-2019-17558.py:30"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/demo/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": [
        "CyberCTF/vulhub-solr-cve-2019-17558"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-solr-cve-2019-17558/app/README.md:41",
        "CyberCTF/vulhub-solr-cve-2019-17558/app/README.zh-cn.md:39"
      ]
    },
    {
      "method": "POST",
      "path_template": "/solr/staging/config",
      "content_type": "application/json",
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "xkyrage/Exploit_CVE-2019-17558-RCE"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "xkyrage/Exploit_CVE-2019-17558-RCE/CVE-2019-17558-_custom_payload:37"
      ]
    },
    {
      "method": "GET",
      "path_template": "/solr/admin/info/system",
      "query_markers": [
        "wt=json"
      ],
      "ports": [
        8983
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-solr-cve-2019-17558"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "CyberCTF/vulhub-solr-cve-2019-17558/checks/version.sh:4"
      ]
    }
  ],
  "rules": []
}
