Patchfirst
CVE-2019-0193 KEVPublic exploit High · 7.2 EPSS 83.5%

Apache Solr DataImportHandler Code Injection Vulnerability

Apache · Solr

Summary

Apache Solr's DataImportHandler module, which pulls data from databases and other sources, accepts a full DIH configuration through a request's "dataConfig" parameter, used by the admin screen's debug mode. Because a DIH configuration can contain scripts, an attacker with network access and high-privilege credentials can inject code through this parameter, and the feature remains exposed in Solr 8.2.0 and later unless the Java system property "enable.dih.dataConfigParam" is set to true to enable it.

Official description · NVD

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.

Breakdown
68.0 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 6 months after disclosure. Public exploit code (PoC-in-GitHub) was available 4 months before disclosure.

  1. Public exploit codePoC-in-GitHub4 mo before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+6 mo
  4. Added to CISA KEVEU database agrees+2 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

2 related vulnerabilities in the same code over 16 months. The latest fix listed for solr-core is 8.6.3.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2018-1308This vulnerability in Apache Solr 1.2 to 6.6.2 and 7.0.0 to…9 Apr 2018
  2. relatedMedium

    Why these are linked:

    This CVECVE-2019-0193Solr DataImportHandler Code Injection1 Aug 2019KEV

Fixes in solr-coreMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 7.4.0CVE-2018-80265 Jul 2018
  2. 7.7.0CVE-2017-31648 Mar 2019
  3. 7.7.0CVE-2018-118021 Apr 2020
  4. 8.2.0CVE-2019-01931 Aug 2019KEV
  5. 8.3.0CVE-2019-1240918 Nov 2019
  6. 8.4.0CVE-2019-1755830 Dec 2019KEV
  7. 8.6.3CVE-2020-1395713 Oct 2020Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

remote request parameter is the attack entry point

has a feature in which the whole DIH configuration can come from a request's "dataConfig" parameter
From the official description (NVD) Original (opens in a new tab) ↗

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
AI mapping from the description · primary impact

injected scripts execute as code

Since a DIH config can contain scripts, this parameter is a security risk
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 244 general rules for its techniques

Rules for this CVE

0 that reference CVE-2019-0193 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.apache.solr:solr-core.

Mavenorg.apache.solr:solr-coreGHSA-3gm7-v7vw-866c

Upgrade to 8.11.3 or later

Fixes this CVE and 6 other known vulnerabilities in this package (CVE-2013-6397, CVE-2017-12629, +4).

Set the version to 8.11.3 or later in your pom.xml or build.gradle.

First fixed in 8.2.0 for CVE-2019-0193.

Affected versions

If you runUpgrade to
All versions before 8.2.08.11.3first fix for this CVE: 8.2.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

23 links, grouped by NVD tag (22 duplicates merged)

Mailing List 17

lists.apache.org/thread.html/1addbb49a1fc0947fb32ca663d76d93cfaade35a4848a76d4b4ded9c%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/42cc4d334ba33905b872a0aa00d6a481391951c8b1450f01b077ce74%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/55880d48e38ba9e8c41a3b9e41051dbfdef63b86b0cfeb32967edf03%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/6f2d61bd8732224c5fd3bdd84798f8e01e4542d3ee2f527a52a81b83%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/7143983363f0ba463475be4a8b775077070a08dbf075449b7beb51ee%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/9b0e7a7e3e18d0724f511403b364fc082ff56e3134d84cfece1c82fc%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/a6e3c09dba52b86d3a1273f82425973e1b0623c415d0e4f121d89eab%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/e85f735fad06a0fb46e74b7e6e9ce7ded20b59637cd9f993310f814d%40%3Cissues.lucene.apache.org%3E
Show 9 moreShow fewerlists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.org%3Elists.apache.org/thread.html/r19d23e8640236a3058b4d6c23e5cd663fde182255f5a9d63e0606a66%40%3Cdev.lucene.apache.org%3Elists.apache.org/thread.html/r1d4a247329a8478073163567bbc8c8cb6b49c6bfc2bf58153a857af1%40%3Ccommits.druid.apache.org%3Elists.apache.org/thread.html/r339865b276614661770c909be1dd7e862232e3ef0af98bfd85686b51%40%3Cdev.lucene.apache.org%3Elists.apache.org/thread.html/r33aed7ad4ee9833c4190a44e2b106efd2deb19504b85e012175540f6%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.org%3Elists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.org%3Elists.apache.org/thread.html/rb34d820c21f1708c351f9035d6bc7daf80bfb6ef99b34f7af1d2f699%40%3Cissues.lucene.apache.org%3Elists.apache.org/thread.html/rc400db37710ee79378b6c52de3640493ff538c2beb41cefdbbdf2ab8%40%3Ccommits.submarine.apache.org%3E
↑ ↓ chooseEnter openEsc close