What is Apache Solr?
Apache Solr is a widely deployed open-source enterprise search platform built on Apache Lucene, used to power search functionality for e-commerce sites, internal document repositories, and countless other applications that need fast, full-text search. Its DataImportHandler module is an optional add-on that lets Solr pull data directly from databases, files, and other sources into its search index — functionality powerful enough that, if abused, it can be turned against the server hosting it.
Overview
CVE-2019-0193 is a code injection vulnerability in Solr's DataImportHandler module. The handler supports a "ScriptTransformer" feature that allows administrators to embed a scripting language (such as JavaScript, via Java's built-in scripting engine) directly within the dataConfig configuration used to define an import job. If an attacker can control or influence this dataConfig parameter — which was possible on servers where the DataImportHandler was enabled and reachable without adequate access controls — they could inject arbitrary script code that executes with the privileges of the Solr server process, resulting in remote code execution.
Technical Details
The root cause (CWE-94, Code Injection) is that the DataImportHandler's scripting transformer feature evaluates attacker-influenced configuration content as executable code rather than treating it strictly as data. Because the dataConfig parameter can, in vulnerable configurations, be supplied via an HTTP request to Solr's admin/import endpoints, an attacker with network access to a Solr instance exposing this handler could submit a crafted request containing malicious script content and have it executed on the server — no separate authentication was required, since Solr instances of this era commonly ran without any built-in authentication at all.
Discovery
Addressed through the Apache Solr project's standard security release and advisory process.
Exploitation Context
CISA's KEV catalog listing confirms this vulnerability has been exploited in the wild. Solr instances have long been a favorite opportunistic target for internet-wide scanning because many deployments historically ran with no authentication enabled and exposed administrative functionality directly to the internet; DataImportHandler-based RCE bugs like this one have been used for cryptocurrency mining, botnet recruitment, and broader server compromise campaigns.
Remediation
- Upgrade to a patched Apache Solr release that addresses this DataImportHandler code injection issue.
- Disable the DataImportHandler module entirely if it is not required for your deployment.
- Restrict network access to Solr's admin and import endpoints to trusted internal networks only — never expose them directly to the internet.
- Enable Solr's built-in authentication and authorization mechanisms, which were historically disabled by default in many deployments.
- Review Solr access logs for anomalous
dataConfigparameters or unexpected import requests predating remediation.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2019-0193 |
| Vendor / Product | Apache — Solr |
| NVD Published | 2019-08-01 |
| NVD Last Modified | 2025-10-27 |
| CVSS 3.1 Score | 7.2 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-94 find similar ↗ |
| CISA KEV Added | 2021-12-10 |
| CISA KEV Deadline | 2022-06-10 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2019-08-01 | Disclosed and patched by the Apache Solr project |
| 2021-12-10 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-06-10 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2019-0193 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |