PoC Monitor
← All CVEs
CVE-2019-17558published 30 Dec 2019 16:36 UTCData: JSON · API

Apache Solr

Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability

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).

First public PoC 60 days beforebefore publication · 1 Nov 2019 · Exploit-DB
Public PoCs73 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS7.5high · scored by CISA ADP · CWE-74
CISA KEV 3 Nov 20211.8 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.apache.solr:solr-core (Maven)
  • >= 5.0.0, < 8.4.0

Fixed in 8.4.0

from GitHub Security Advisory GHSA-ww97-9w65-2crx

org.apache.solr:solr-core (Maven)
  • >= 6.0.0, < 8.4.0

Fixed in 8.4.0

from GitHub Security Advisory GHSA-ww97-9w65-2crx

org.apache.solr:solr-core (Maven)
  • >= 7.0.0, < 8.4.0

Fixed in 8.4.0

from GitHub Security Advisory GHSA-ww97-9w65-2crx

org.apache.solr:solr-core (Maven)
  • >= 8.0.0, < 8.4.0

Fixed in 8.4.0

from GitHub Security Advisory GHSA-ww97-9w65-2crx

Mitigation

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.

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540+630First public PoC1 Nov 2019 · t−60dCVE published30 Dec 2019 · t = 0Added to CISA KEV3 Nov 2021 · t+1.8y

First public PoC 60 days before publication; added to CISA KEV 1.8 years after publication. First PoC: Apache Solr 8.2.0 - Remote Code Execution (Exploit-DB, 1 Nov 2019).

PoC repositories

Found on GitHub.

3 PoCs · 1 pending · 2 informational

PoCs 3
RepositoryCreatedStarsAssessment
Ma1Dong/Solr_CVE-2019-17558 4 Aug 2020 +218 d 2 PoC
xkyrage/Exploit_CVE-2019-17558-RCE 15 Dec 2020 +351 d 0 PoC via PoC Index
CyberCTF/vulhub-solr-cve-2019-17558 8 Oct 2026 +6.8 y 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
zhzyker/exphub 1 Apr 2020 +93 d 4,297 Pending · repository exceeds size limit
Informational 2
RepositoryCreatedStarsAssessment
thelostworldFree/CVE-2019-17558_Solr_Vul_Tool 27 Mar 2020 +88 d 1 Informational · write-up
rogerzeferino/cve-2019-17558-apache-solr-rce 16 Feb 2026 +6.1 y 1 Informational · write-up

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.

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

POST /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" in application/json
Ports
8983
Seen in
1 repo: CyberCTF/vulhub-solr-cve-2019-17558
Evidence
CyberCTF/vulhub-solr-cve-2019-17558/app/README.md:41 CyberCTF/vulhub-solr-cve-2019-17558/app/README.zh-cn.md:39

POST /solr/staging/config

Content-Type
application/json
Ports
8983
Seen in
1 repo: xkyrage/Exploit_CVE-2019-17558-RCE
Evidence
xkyrage/Exploit_CVE-2019-17558-RCE/CVE-2019-17558-_custom_payload:37

GET /solr/admin/info/system

Query
wt=json
Ports
8983
Seen in
1 repo: CyberCTF/vulhub-solr-cve-2019-17558
Evidence
CyberCTF/vulhub-solr-cve-2019-17558/checks/version.sh:4

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /solr/admin/cores
(?i)^/solr/admin/cores\?(?:.*&)?indexInfo=false.*wt=json
POST /solr/demo/config
(?i)^/solr/demo/config(?:[?#].*)?$
POST /solr/staging/config
(?i)^/solr/staging/config(?:[?#].*)?$
GET /solr/admin/info/system
(?i)^/solr/admin/info/system\?(?:.*&)?wt=json

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /solr/admin/cores
alert http any any -> $HOME_NET [8080,8983] (msg:"GG PoC-Monitor CVE-2019-17558 Apache Apache Solr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/solr/admin/cores"; http.uri; content:"indexInfo=false"; http.uri; content:"wt=json"; reference:url,poc.griffinguard.io/cve/CVE-2019-17558; classtype:web-application-attack; sid:9708135; rev:1;)
POST /solr/demo/config
alert http any any -> $HOME_NET [8983] (msg:"GG PoC-Monitor CVE-2019-17558 Apache Apache Solr exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/solr/demo/config"; http.request_body; content:"|22|update-queryresponsewriter|22|"; http.request_body; content:"|22|startup|22|:|22|lazy|22|"; http.request_body; content:"|22|name|22|:|22|velocity|22|"; http.request_body; content:"|22|class|22|:|22|solr.VelocityResponseWriter|22|"; http.request_body; content:"|22|template.base.dir|22|"; http.request_body; content:"|22|solr.resource.loader.enabled|22|:|22|true|22|"; http.request_body; content:"|22|params.resource.loader.enabled|22|:|22|true|22|"; reference:url,poc.griffinguard.io/cve/CVE-2019-17558; classtype:web-application-attack; sid:9762837; rev:1;)
POST /solr/staging/config
alert http any any -> $HOME_NET [8983] (msg:"GG PoC-Monitor CVE-2019-17558 Apache Apache Solr exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/solr/staging/config"; reference:url,poc.griffinguard.io/cve/CVE-2019-17558; classtype:web-application-attack; sid:9079309; rev:1;)
GET /solr/admin/info/system
alert http any any -> $HOME_NET [8983] (msg:"GG PoC-Monitor CVE-2019-17558 Apache Apache Solr exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/solr/admin/info/system"; http.uri; content:"wt=json"; reference:url,poc.griffinguard.io/cve/CVE-2019-17558; classtype:web-application-attack; sid:9255375; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /solr/admin/cores
title: Apache Apache Solr exploit attempt (CVE-2019-17558)
id: gg-pocmon-cve-2019-17558-9708135
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-17558. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-17558
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/solr/admin/cores'
    cs-uri-query|contains|all:
      - 'indexInfo=false'
      - 'wt=json'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.17558
POST /solr/demo/config
title: Apache Apache Solr exploit attempt (CVE-2019-17558)
id: gg-pocmon-cve-2019-17558-9762837
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-17558. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-17558
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/solr/demo/config'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.17558
POST /solr/staging/config
title: Apache Apache Solr exploit attempt (CVE-2019-17558)
id: gg-pocmon-cve-2019-17558-9079309
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-17558. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-17558
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/solr/staging/config'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.17558
GET /solr/admin/info/system
title: Apache Apache Solr exploit attempt (CVE-2019-17558)
id: gg-pocmon-cve-2019-17558-9255375
status: experimental
description: Request pattern taken from public PoCs for CVE-2019-17558. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2019-17558
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/solr/admin/info/system'
    cs-uri-query|contains|all:
      - 'wt=json'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2019.17558