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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache | Apache Solr | Apache Solr all prior to 8.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lucene-solr | 3.6.2+dfsg-22 | — |
| Debian 13 | lucene-solr | 3.6.2+dfsg-22 | — |
| Debian 12 | lucene-solr | 3.6.2+dfsg-22 | — |
| Debian 9 | lucene-solr | 3.6.2+dfsg-10+deb9u3 | DLA-2327-1 |
| Debian 8 | lucene-solr | 3.6.2+dfsg-5+deb8u3 | DLA-1954-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | lucene-solr | 3.6.2+dfsg-18~18.04.1~esm2 | USN-7283-1 |
| Ubuntu Pro 16.04 LTS | lucene-solr | 3.6.2+dfsg-8ubuntu0.1+esm1 | USN-7283-1 |
| Ubuntu Pro 14.04 LTS | lucene-solr | 3.6.2+dfsg-2ubuntu0.1~esm4 | USN-7283-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 5 repositories
-
jas502n/CVE-2019-0193 ★ 90 · Aug 9, 2019
Apache Solr DataImport Handler RCE
-
1135/solr_exploit ★ 64 · Aug 12, 2019
Apache Solr远程代码执行漏洞(CVE-2019-0193) Exploit
-
xConsoIe/CVE-2019-0193 ★ 7 · Mar 18, 2019
-
jaychouzzk/CVE-2019-0193-exp ★ 1 · Sep 3, 2019
-
freeFV/ApacheSolrRCE ★ 0 · Sep 13, 2022
ApacheSolrRCE(CVE-2019-0193)一键写shell,原理是通过代码执行的java文件流写的马。
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Solr DataImportHandler <8.2.0 - Remote Code Execution http/cves/2019/CVE-2019-0193.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.solr:solr-core | < 8.2.0 | 8.2.0 | GHSA-3gm7-v7vw-866c |
Advisories 3
- USN-7283-1 lucene-solr vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-1954-1 lucene-solr - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2327-1 lucene-solr - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://issues.apache.org/jira/browse/SOLR-13669
- [debian-lts-announce] 20191010 [SECURITY] [DLA 1954-1] lucene-solr security update mailing-list
- [lucene-issues] 20191025 [jira] [Updated] (SOLR-13873) Is there any fix for CVE-2019-0193 issue for solr 7.7.1 mailing-list
- [lucene-issues] 20191025 [jira] [Created] (SOLR-13873) Is there any fix for CVE-2019-0193 issue for solr 7.7.1 mailing-list
- [lucene-issues] 20191025 [jira] [Resolved] (SOLR-13873) Is there any fix for CVE-2019-0193 issue for solr 7.7.1 mailing-list
- [lucene-issues] 20191025 [jira] [Commented] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [lucene-issues] 20191025 [jira] [Commented] (SOLR-13873) Is there any fix for CVE-2019-0193 issue for solr 7.7.1 mailing-list
- [nifi-commits] 20191113 svn commit: r1869773 - /nifi/site/trunk/security.html mailing-list
- [lucene-issues] 20191129 [jira] [Commented] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [lucene-issues] 20191130 [jira] [Resolved] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [lucene-issues] 20191130 [jira] [Closed] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [nifi-commits] 20200123 svn commit: r1873083 - /nifi/site/trunk/security.html mailing-list
- [lucene-dev] 20200213 Re: 7.7.3 bugfix release mailing-list
- [lucene-dev] 20200214 Re: 7.7.3 bugfix release mailing-list
- [lucene-issues] 20200218 [jira] [Updated] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [lucene-issues] 20200218 [jira] [Commented] (SOLR-13669) [CVE-2019-0193] Remote Code Execution via DataImportHandler mailing-list
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2327-1] lucene-solr security update mailing-list
- [submarine-commits] 20201209 [GitHub] [submarine] QiAnXinCodeSafe opened a new issue #474: There is a vulnerability in Apache Solr 5.5.4,upgrade recommended mailing-list
- [druid-commits] 20210324 [GitHub] [druid] jihoonson opened a new pull request #11030: Suppress cves mailing-list
- [solr-users] 20210618 CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability mailing-list
- [solr-users] 20210618 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability mailing-list
- [solr-users] 20210728 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability mailing-list