CVE-2019-0193 is a high-severity (CVSS 7.2) Code Injection vulnerability in org.apache.solr:solr-core. It is in CISA's Known Exploited Vulnerabilities catalog (added 2021-12-10) — treat it as actively exploited and patch now. A fix is available for org.apache.solr:solr-core — see the affected versions and patch details below.
XML External Entity (XXE) Injection in Apache Solr
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2021-12-10. Federal agencies were required to remediate by 2022-06-10.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2019-0193.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2019-0193 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 395,249 CVEs with a current EPSS score, this one falls in the 50–90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.apache.solr:solr-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.solr:solr-core | all versions | 8.2.0org.apache.solr:solr-core:8.2.0 |
Affected Products
solrapachedebian linuxdebianResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
In Apache Solr, the DataImportHandler, an optional but popular module to…
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.solr:solr-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.solr:solr-core to 8.2.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-0193 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2019-0193
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2019-0193 -u https://target- Template
- Apache Solr DataImportHandler <8.2.0 - Remote Code Execution
- Severity
- high
- Impact
- Successful exploitation of this vulnerability could lead to remote code execution, allowing an attacker to execute arbitrary commands on the affected system.
- Remediation
- Starting with version 8.2.0 of Solr, use of this parameter requires setting the Java System property "enable.dih.dataConfigParam" to true.
Template by ProjectDiscovery nuclei-templates (pdteam), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Edit solrconfig.xml to configure all DataImportHandler usages with an "invariants" section listing the "dataConfig" parameter set to am empty string, or ensure your network settings are configured so that only trusted traffic communicates with Solr, especially to the DataImportHandler (although this is a best practice regardless) (ref: https://issues.apache.org/jira/browse/SOLR-13669)Source: Red Hat security advisory for CVE-2019-0193 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2019-0193 in your dependencies?
Find it across Maven, including transitive dependencies.