CVE DatabaseCVE-2019-0193
한국어 권고문 →
CVE-2019-01937.2/HIGHCISA KEVCWE-94CWE-94

Apache Solr DataImportHandler Remote Code Execution (RCE) Vulnerability Analysis and Mitigation Guide (CVE-2019-0193)

⚡ Jump to Patch
Affected Vendors
apache
Affected Components
solr
Published Date
2019-08-01
CVSS v3.1
7.2
HIGH
EPSS (30d)
83.5%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Apache Solr versions prior to 8.2.0 with the DataImportHandler (DIH) module enabled

Impact

An authenticated attacker (or an attacker with admin access) can execute arbitrary system commands on the host server by sending a malicious DIH configuration

Mitigation

Upgrade Apache Solr to version 8.2.0 or higher, or explicitly disable the 'enable.dih.dataConfigParam' Java system property

Affected Products & Version Scope

All Apache Solr versions prior to 8.2.0 when the DataImportHandler module is enabled

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The recommended remediation is to upgrade Apache Solr to version 8.2.0 or later. Starting with version 8.2.0, the use of the 'dataConfig' parameter is disabled by default and requires explicitly setting the Java system property 'enable.dih.dataConfigParam' to true.

bash
# Example: Upgrade Solr on Debian/Ubuntu systems
# Download and run the official installation script for version 8.2.0
wget https://archive.apache.org/dist/lucene/solr/8.2.0/solr-8.2.0.tgz
tar xzf solr-8.2.0.tgz solr-8.2.0/bin/install_solr_service.sh --strip-components=2
sudo ./install_solr_service.sh solr-8.2.0.tgz -u solr

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, you must explicitly disable the vulnerable parameter by configuring the Solr environment variables.

bash
# Append the disabling property to the solr.in.sh configuration file
echo "SOLR_OPTS=\"$SOLR_OPTS -Denable.dih.dataConfigParam=false\"" >> /etc/default/solr.in.sh

# Restart the Solr service to apply changes
sudo systemctl restart solr

3. Log Audit & IoC Verification Commands

Use the following commands to inspect Solr logs for potential exploitation attempts and verify the current configuration status.

bash
# Search Solr logs for suspicious requests containing 'dataConfig' or script execution attempts
grep -Ei 'dataConfig|script|java.lang.Runtime' /var/solr/logs/solr.log

# Verify if the vulnerable DIH parameter is explicitly disabled in the running process
ps aux | grep solr | grep -i 'enable.dih.dataConfigParam'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Immediately upgrade Apache Solr to version 8.2.0 or higher, or ensure 'enable.dih.dataConfigParam' is set to false in your environment configuration.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

Apache Solr's DataImportHandler (DIH) is an optional but widely used module designed to import data from databases and other external sources. To facilitate debugging and development, the DIH admin interface allows the entire DIH configuration to be supplied directly via the 'dataConfig' parameter in an HTTP request. Because DIH configurations can contain scripts (e.g., JavaScript for data transformation) and lack proper input validation or sandboxing, this parameter poses a severe security risk (CWE-94), allowing arbitrary code execution within the context of the Solr server process.

2. Exploitation Mechanics & Attack Scenario

An attacker with access to the Solr Admin UI or the API endpoints can exploit this vulnerability by performing the following steps:

  • The attacker identifies an active Solr core and targets its '/solr/[core_name]/dataimport' endpoint.
  • A POST request is crafted with parameters such as 'command=full-import', 'debug=true', and 'dataConfig'.
  • Inside the 'dataConfig' parameter, the attacker embeds a '<script>' tag containing malicious JavaScript that invokes Java APIs, such as 'java.lang.Runtime.getRuntime().exec()', to execute OS commands.
  • Upon receiving the request, the Solr server parses and executes the script, resulting in remote code execution on the underlying operating system.

3. Infrastructure & Business Impact

This vulnerability is highly critical and is actively exploited in the wild (listed in CISA KEV). Successful exploitation grants the attacker shell access with the privileges of the Solr process owner. This can lead to full system compromise, credential theft, lateral movement within the internal network, data exfiltration, and deployment of ransomware or cryptocurrency miners, severely impacting business continuity.

Official Vendor Advisories & References

NVD Original English 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.

Frequently Asked SecOps Questions (CVE-2019-0193)

FAQ

Q1. How critical is CVE-2019-0193 and is it actively exploited in the wild?

CVE-2019-0193 is rated CVSS 7.2 (HIGH) with a 30-day EPSS exploitation probability of 83.5%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2019-0193?

Primary impacted vendors include apache across solr. Scope summary: All Apache Solr versions prior to 8.2.0 when the DataImportHandler module is enabled

Q3. What temporary mitigations or workarounds exist for CVE-2019-0193 before patching?

[Mitigation] Upgrade Apache Solr to version 8.2.0 or higher, or explicitly disable the 'enable.dih.dataConfigParam' Java system property Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2019-0193

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (apache)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2019-0193 Apache Solr DataImportHandler Remote Code Execution (RCE) Vulnerability Analysis and Mitigation Guide (CVE-2019-0193) (CVSS 7.2) - Patch & Workaround | CVE Pulse