CVE-2019-0193 Apache Solr DataImportHandler Code Injection
Attackers can execute arbitrary code via the DataImportHandler dataConfig parameter if debug mode is enabled, requiring specific configuration to mitigate.
- Exploited in the wild
- Since 10 Dec 2021
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-0193?
CVE-2019-0193 is a high-severity code injection vulnerability in Debian Debian Linux, published on 1 Aug 2019. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2019-0193?
2 open source packages ship an affected version, including org.apache.solr:solr-core. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.solr:solr-core Maven | All versions | 8.2.0 |
org.apache.solr:solr-core Maven | All versions | 8.2.0 |
Products include Apache Solr, Debian Debian Linux.
How do I fix CVE-2019-0193?
Upgrade org.apache.solr:solr-core to 8.2.0 or later. US federal agencies must fix it by 10 Jun 2022.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-0193 being exploited?
Yes. Attackers have exploited CVE-2019-0193 in the wild since at least 10 Dec 2021.
Public exploit code: 1 Nuclei template and 5 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
- CVE-2019-17558 Apache Solr VelocityResponseWriter Plug-In Remote Code Execution
- CVE-2024-45216 Apache Solr: Authentication bypass possible using a fake URL Path ending
- CVE-2021-44548 Apache Solr information disclosure vulnerability through DataImportHandler
- CVE-2021-27905 SSRF vulnerability with the Replication handler
- CVE-2020-13957 Incorrect Authorization in Apache Solr
Sources
Also known as DEBIAN-CVE-2019-0193, DLA-1954-1, DLA-2327-1, GHSA-3gm7-v7vw-866c, UBUNTU-CVE-2019-0193, USN-7283-1.