cve.bz

CVE-2019-0193 Apache Solr DataImportHandler Code Injection Vulnerability

7.2 highKEVEPSS 84%Fix available

High (7.2) in Apache Solr. In CISA KEV since 2021-12-10. EPSS 84% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.solr:solr-core 8.2.0.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
84% (unchanged from 84% a week ago; 84% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-12-10, due 2022-06-10
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-0193 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-0193?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-0193?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-0193 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:solrbefore 7.7.3
apache:solrfrom 8.1.0 before 8.1.2
debian:debian_linux8.0
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3gm7-v7vw-866cMavenorg.apache.solr:solr-core<8.2.08.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8lucene-solr3.6.2+dfsg-5+deb8u3DLA-1954-1
Debian9lucene-solr3.6.2+dfsg-10+deb9u3DLA-2327-1
Debian12, 13, 14lucene-solr3.6.2+dfsg-22DEBIAN-CVE-2019-0193
UbuntuPro:14.04:LTSlucene-solr3.6.2+dfsg-2ubuntu0.1~esm4UBUNTU-CVE-2019-0193 USN-7283-1
UbuntuPro:16.04:LTSlucene-solr3.6.2+dfsg-8ubuntu0.1+esm1UBUNTU-CVE-2019-0193 USN-7283-1
UbuntuPro:18.04:LTSlucene-solr3.6.2+dfsg-18~18.04.1~esm2UBUNTU-CVE-2019-0193 USN-7283-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

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)

ProductPackageStateAdvisory
Red Hat Fuse 7camel-solrNot affected
Red Hat JBoss Data Virtualization 6solr-coreNot affected
Red Hat JBoss Enterprise Application Platform 6solr-coreNot affected
Red Hat JBoss Fuse 6solr-coreNot affected
Red Hat JBoss Fuse Service Works 6solr-coreOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-0193.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON