ZeroHour

CVE-2019-0193

KEVlarge

Code Injection RCE in Apache Solr DataImportHandler (DIH)

CISA: Apache Solr DataImportHandler Code Injection Vulnerability

CVSS 3.1
7.2 high
EPSS
84%p100
Published
()
KEV added
AI analysis

CVE-2019-0193 is a code injection flaw (CWE-94) in the DataImportHandler (DIH), an optional but popular Apache Solr module used to pull in data from databases and other sources. The DIH configuration can be supplied at request time via the 'dataConfig' parameter (used by the DIH admin screen's debug mode), and because such configs can embed scripts, a crafted parameter allows arbitrary code execution. A successful attacker gains remote code execution within the Solr process (C:H/I:H/A:H); the 7.2 CVSS reflects that high-privilege access to the Solr admin/DIH interface is normally required, though internet-exposed instances without authentication remove that barrier. Any Solr deployment using DIH on versions before 8.2.0, when the 'enable.dih.dataConfigParam' opt-in Java system property was introduced, is affected, including Solr packages shipped with Debian Linux. Exploitation is confirmed in the wild (added to the CISA KEV on 2021-12-10), EPSS assigns an 83.5% 30-day exploitation probability (100th percentile), and no public PoC is catalogued.

What to do: Upgrade Apache Solr to 8.2.0 or later, or apply vendor updates per the CISA KEV required action; if upgrading is not immediately possible, restrict access to the Solr admin UI and the dataimport handler and leave the 'enable.dih.dataConfigParam' property disabled unless needed. Check access logs for requests to the dataimport handler containing a 'dataConfig' parameter as an indicator of probing or exploitation. Ransomware linkage is listed as unknown, so treat any exposed instance as a potential foothold.

Affected
Apache SolrVersions prior to 8.2.0 where the DataImportHandler is in use (8.2.0 introduced the enable.dih.dataConfigParam opt-in flag; the data does not enumerate earlier
Debian Linux
Estimated exposure
large≈10,000–40,000 internet-exposed Solr instances, plus a larger uncounted population of internal and embedded deployments — Public internet-wide scans have historically found Solr on the order of tens of thousands of exposed hosts, and Solr is widely embedded as the search backend in CMS, e-commerce, and repository stacks, so the total install base likely…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
Apache Solr
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
apachedebian
Products
solr, debian linux
Weakness
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

In the news