CVE-2019-0193
Apache Solr DataImportHandler Code Injection Vulnerability
Description
CVE-2019-0193 is a high-severity code injection vulnerability in the Apache Solr DataImportHandler module that allows authenticated attackers to execute arbitrary code on the server. The DataImportHandler (DIH) is an optional but widely used Solr module that pulls data from external sources, and its debug mode accepts a 'dataConfig' parameter that can contain executable scripts. An attacker with access to the DIH admin screen can inject malicious code through this parameter to achieve remote code execution. This Apache Solr vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog. With an EPSS score of 93.20% (99.8th percentile), CVE-2019-0193 has a near-certain probability of exploitation.
KEV Information
CVSS Score
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CalculatorAffected Products
| Vendor | Product | Version |
|---|---|---|
| apache | solr | < 7.7.3; >= 8.1.0, < 8.1.2 |
| debian | debian linux | 8.0; 9.0 |
Multiple CVSS Assessments
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- https://issues.apache.org/jira/browse/SOLR-13669(Mitigation, Vendor Advisory)
- https://lists.apache.org/thread.html/1addbb49a1fc0947fb32ca663d76d93cfaade35a4848a76d4b4ded9c%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/42cc4d334ba33905b872a0aa00d6a481391951c8b1450f01b077ce74%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/55880d48e38ba9e8c41a3b9e41051dbfdef63b86b0cfeb32967edf03%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/6f2d61bd8732224c5fd3bdd84798f8e01e4542d3ee2f527a52a81b83%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/7143983363f0ba463475be4a8b775077070a08dbf075449b7beb51ee%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/9b0e7a7e3e18d0724f511403b364fc082ff56e3134d84cfece1c82fc%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/a6e3c09dba52b86d3a1273f82425973e1b0623c415d0e4f121d89eab%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/bcce5a9c532b386c68dab2f6b3ce8b0cc9b950ec551766e76391caa3%40%3Ccommits.nifi.apache.org%3E(Mailing List, Patch)
- https://lists.apache.org/thread.html/e85f735fad06a0fb46e74b7e6e9ce7ded20b59637cd9f993310f814d%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/r19d23e8640236a3058b4d6c23e5cd663fde182255f5a9d63e0606a66%40%3Cdev.lucene.apache.org%3E(Issue Tracking, Mailing List)
- https://lists.apache.org/thread.html/r1d4a247329a8478073163567bbc8c8cb6b49c6bfc2bf58153a857af1%40%3Ccommits.druid.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/r339865b276614661770c909be1dd7e862232e3ef0af98bfd85686b51%40%3Cdev.lucene.apache.org%3E(Issue Tracking, Mailing List)
- https://lists.apache.org/thread.html/r33aed7ad4ee9833c4190a44e2b106efd2deb19504b85e012175540f6%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.org%3E(Issue Tracking, Mailing List)
- https://lists.apache.org/thread.html/rb34d820c21f1708c351f9035d6bc7daf80bfb6ef99b34f7af1d2f699%40%3Cissues.lucene.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/rc400db37710ee79378b6c52de3640493ff538c2beb41cefdbbdf2ab8%40%3Ccommits.submarine.apache.org%3E(Mailing List)
- https://lists.apache.org/thread.html/rca37935d661f4689cb4119f1b3b224413b22be161b678e6e6ce0c69b%40%3Ccommits.nifi.apache.org%3E(Mailing List, Patch)
- https://lists.debian.org/debian-lts-announce/2019/10/msg00013.html(Mailing List, Third Party Advisory)
- https://lists.debian.org/debian-lts-announce/2020/08/msg00025.html(Mailing List, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-0193(US Government Resource)
Weakness Type
CWE-94: Code Injection
Code Injection occurs when software constructs code segments using externally-influenced input without properly neutralizing special elements that could modify the intended code behavior. In Apache Solr's DataImportHandler, the 'dataConfig' parameter accepts a complete DIH configuration from the request, and since DIH configurations can contain scripts, this parameter becomes a vector for injecting and executing arbitrary code within the Solr server's context.
Learn more: CWE-94 — Improper Control of Generation of Code ('Code Injection')
Impact Analysis
CVE-2019-0193 carries a CVSS 3.1 score of 7.2 (HIGH), indicating a serious threat to affected Apache Solr deployments. The vulnerability is remotely exploitable over the network with low attack complexity, though it requires high-level privileges (administrative access to the DIH admin screen) and no user interaction. Successful exploitation fully compromises confidentiality, integrity, and availability of the Solr server, allowing attackers to read indexed data and server files, modify or delete search indices, and execute arbitrary commands on the underlying operating system. The EPSS score of 93.20% indicates near-certain exploitation probability. While the high privilege requirement limits the initial attack surface, misconfigured Solr instances with exposed admin interfaces or those accessible after an initial compromise significantly increase the exploitability of this vulnerability.
Exploit Maturity
CVE-2019-0193 is confirmed as actively exploited through its listing in the CISA Known Exploited Vulnerabilities catalog, with a remediation deadline of 2022-06-10. The EPSS score of 93.20% (99.8th percentile) indicates near-certain exploitation probability, reflecting the widespread targeting of Apache Solr instances. The vulnerability is well-documented through the Apache Jira issue SOLR-13669, which provides detailed technical information about the DataImportHandler code injection mechanism. The availability of detailed vulnerability information and the prevalence of misconfigured Solr installations with exposed admin interfaces make this a high-priority target for attackers.
Remediation
- Upgrade Apache Solr to version 8.2.0 or later, which requires explicitly setting the Java System property
enable.dih.dataConfigParamto true before the dataConfig parameter is accepted, effectively disabling the vulnerable feature by default. - For environments running Solr versions prior to 8.2.0, update to Solr 7.7.3 or 8.1.2, which contain security fixes for this vulnerability. Verify affected products including Debian Linux 8.0 and 9.0 distributions that package Solr.
- Restrict access to the Solr admin interface using authentication and network-level controls. Ensure the DIH admin debug screen is not accessible from untrusted networks, and implement IP-based access restrictions for all administrative endpoints.
- If the DataImportHandler is not required, disable or remove the DIH module entirely from the Solr configuration. If DIH is needed, ensure that the
enable.dih.dataConfigParamsystem property is not set to true in production environments. - Monitor Solr logs for suspicious DataImportHandler requests, particularly those containing dataConfig parameters with embedded scripts, and implement web application firewall rules to detect and block code injection attempts targeting the DIH endpoint.
Technical Details
CVE-2019-0193 exploits a design flaw in Apache Solr's DataImportHandler module, where the debug mode of the DIH admin screen allows the entire DIH configuration to be supplied via the request's 'dataConfig' parameter. Since DIH configurations support embedded scripts (such as JavaScript or other scripting languages supported by the Java scripting engine), an attacker who can submit requests to the DIH endpoint can inject arbitrary code that executes within the Solr process context. The vulnerability is classified as CWE-94 (Code Injection) because the application dynamically interprets code from an externally-controlled parameter. The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) reflects that while the attack is network-based with low complexity, it requires high privileges, limiting initial exploitability to scenarios where the attacker has administrative access or the admin interface is unprotected.
Frequently Asked Questions
Is CVE-2019-0193 being actively exploited?
Yes. CVE-2019-0193 is listed in the CISA Known Exploited Vulnerabilities catalog, confirming active exploitation of the Apache Solr DataImportHandler vulnerability. The EPSS score of 93.20% (99.8th percentile) indicates near-certain exploitation probability.
What products are affected by CVE-2019-0193?
CVE-2019-0193 affects Apache Solr versions prior to 7.7.3 and versions 8.1.0 through 8.1.1 that have the DataImportHandler module enabled. Debian Linux 8.0 and 9.0 distributions packaging affected Solr versions are also impacted.
How do I fix CVE-2019-0193?
Upgrade Apache Solr to version 8.2.0 or later, which disables the vulnerable dataConfig parameter by default. Alternatively, update to version 7.7.3 or 8.1.2. Restrict access to the Solr admin interface and disable the DataImportHandler module if it is not required.
How severe is CVE-2019-0193?
CVE-2019-0193 has a CVSS 3.1 score of 7.2 (HIGH). While exploitation requires administrative privileges, the code injection vulnerability enables complete server compromise. The EPSS score of 93.20% (99.8th percentile) indicates very high exploitation probability, especially for Solr instances with exposed admin interfaces.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.