Skip to content
Server Security Center
KEVhigh7.2

CVE-2019-0193: Apache Solr DataImportHandler Code Injection

Apache Solr · listed in the CISA catalog of actively exploited vulnerabilities since 2021-12-10.

CVSS v3.1 (CVE record)
7.2
high
EPSS (exploit probability, 30 days)
84%
higher than 99.6% of all CVEs
Added to CISA KEV
2021-12-10
US federal due date 2022-06-10
Ubuntu priority
high

CVE-2019-0193 explained

CVE-2019-0193 is a code injection vulnerability in the DataImportHandler (DIH) module of Apache Solr. A request's "dataConfig" parameter can supply a whole DIH configuration, and such a configuration can contain scripts. It is listed in the CISA Known Exploited Vulnerabilities catalog, so affected systems should be patched promptly.

Impact

An attacker who can send requests to a Solr instance with the DataImportHandler enabled can supply a DIH configuration containing scripts. The CVSS vector shows network access, low complexity, no user interaction, but high privileges required. Successful exploitation can fully compromise confidentiality, integrity and availability of the affected system. CISA lists the flaw as known exploited. Whether it has been used in ransomware is unknown.

Who is affected

The lucene-solr source package is affected on Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. All three have fixed versions, but only through Ubuntu Pro (ESM). The fixed versions are 3.6.2+dfsg-2ubuntu0.1~esm4 (14.04), 3.6.2+dfsg-8ubuntu0.1+esm1 (16.04) and 3.6.2+dfsg-18~18.04.1~esm2 (18.04). Ubuntu 14.04 and 16.04 are end of life. Standard support for 18.04 has ended.

Written with AI from the data on this page and checked against it automatically.

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.

CISA required action: Apply updates per vendor instructions.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • Apache Solr
    Affected
    • Apache Solr all prior to 8.2.0
    Fixed in
    not stated

    Version statement as published by the CNA (free text).

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

  • Ubuntu 18.04 LTS·lucene-solr

    fix via Ubuntu Pro

    Fixed: 3.6.2+dfsg-18~18.04.1~esm2

  • Ubuntu 16.04 LTS·lucene-solr

    fix via Ubuntu Pro

    Fixed: 3.6.2+dfsg-8ubuntu0.1+esm1

  • Ubuntu 14.04 LTS·lucene-solr

    fix via Ubuntu Pro

    Fixed: 3.6.2+dfsg-2ubuntu0.1~esm4

What to do

  1. Identify systems running the lucene-solr package and check whether the DataImportHandler module is in use.
  2. Enable Ubuntu Pro (ESM) on affected Ubuntu 14.04, 16.04 and 18.04 systems to get the fixed lucene-solr packages.
  3. Install the fixed version for your release and restart Solr so it runs the updated code.
  4. Restrict network access to Solr and its admin interface to trusted hosts only.
  5. Plan upgrades of end-of-life Ubuntu 14.04 and 16.04 systems to a supported release.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace lucene-solr with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="lucene-solr"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="lucene-solr"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')

Questions about CVE-2019-0193

Do I need Ubuntu Pro to get the fix?
Yes. For Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS, the fixed lucene-solr packages are published only through Ubuntu Pro (ESM).
Is this vulnerability exploited in practice?
Yes. CISA added CVE-2019-0193 to its Known Exploited Vulnerabilities catalog on 2021-12-10. Its required action is to apply updates per vendor instructions. Ransomware use is listed as unknown.
What changed upstream to address this?
Starting with Solr 8.2.0, the "dataConfig" request parameter can only be used if the Java System property "enable.dih.dataConfigParam" is set to true.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.