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).
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 5.0.0, < 8.4.0
Fixed in 8.4.0
from GitHub Security Advisory GHSA-ww97-9w65-2crx
- >= 6.0.0, < 8.4.0
Fixed in 8.4.0
from GitHub Security Advisory GHSA-ww97-9w65-2crx
- >= 7.0.0, < 8.4.0
Fixed in 8.4.0
from GitHub Security Advisory GHSA-ww97-9w65-2crx
- >= 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 publicationFirst 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| zhzyker/exphub | 1 Apr 2020 +93 d | 4,297 | Pending · repository exceeds size limit |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Apache Solr 8.2.0 - Remote Code Execution | 1 Nov 2019 | 14 Nov 2026 |
| Exploit-DB | Apache Solr - Remote Code Execution via Velocity Template (Metasploit) | 16 Apr 2020 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Apache Solr Remote Code Execution via Velocity Template (exploit/multi/http/solr_velocity_rce) | 31 Jan 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: Apache Solr <=8.3.1 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /solr/admin/cores
- Query
indexInfo=falsewt=json- Ports
- 8080, 8983
- Seen in
- 2 repos: CyberCTF/vulhub-solr-cve-2019-17558, Ma1Dong/Solr_CVE-2019-17558
- Evidence
- CyberCTF/vulhub-solr-cve-2019-17558/checks/version.sh:5 Ma1Dong/Solr_CVE-2019-17558/Solr_CVE-2019-17558.py:30
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"inapplication/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.
(?i)^/solr/admin/cores\?(?:.*&)?indexInfo=false.*wt=json
(?i)^/solr/demo/config(?:[?#].*)?$
(?i)^/solr/staging/config(?:[?#].*)?$
(?i)^/solr/admin/info/system\?(?:.*&)?wt=json
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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;)
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;)
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.
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
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
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
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