CVE-2019-0193 Apache Solr DataImportHandler Code Injection

Exploited in the wild High 7.2 Published Updated

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.

PackageAffectedFixed in
org.apache.solr:solr-core MavenAll versions8.2.0
org.apache.solr:solr-core MavenAll versions8.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.

All Debian Debian Linux vulnerabilities

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.

Is CVE-2019-0193 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free