Skip to content
Server Security Center
KEVhigh7.5

CVE-2019-17558: Apache Solr VelocityResponseWriter Plug-In Remote Code Execution

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

CVSS v3.1 (CVE record)
7.5
high
EPSS (exploit probability, 30 days)
99%
among the highest 0.1% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2022-05-03
Ubuntu priority
–

CVE-2019-17558 explained

CVE-2019-17558 is a remote code execution flaw in the VelocityResponseWriter of Apache Solr 5.0.0 through 8.3.1. Malicious Velocity templates, supplied through a configset or as a request parameter, can run code on the Solr server. CISA lists it as known to be exploited, so exposed Solr instances deserve prompt attention.

Impact

An attacker with low privileges and network access can execute code on the Solr server, with high impact on confidentiality, integrity and availability. No user interaction is needed, but attack complexity is high. Exploitation requires a user-defined configset containing malicious templates, or parameter-provided templates, which are disabled by default and can only be enabled by someone with configuration API access.

Who is affected

The Debian source package lucene-solr is listed for Debian 12 (bookworm), Debian 13 (trixie) and Debian 14 (forky). Debian rates the issue unimportant on all three and plans no fix, so no fixed version is published for any of them. Debian 14 (forky) is the testing distribution, not a stable release. No Ubuntu releases are listed in the facts.

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

Official description

Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template can be provided through Velocity templates in a configset velocity/ directory or as a parameter. A user defined configset could contain renderable, potentially malicious, templates.

Parameter provided templates are disabled by default, but can be enabled by setting params.resource.loader.enabled by defining a response writer with that setting set to true. Defining a response writer requires configuration API access. Solr 8.4 removed the params resource loader entirely, and only enables the configset-provided template rendering when the configset is trusted (has been uploaded by an authenticated user).

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 5.0.0 to Apache Solr 8.3.1
    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.

What to do

  1. Identify all hosts running Apache Solr, including installations from the lucene-solr package.
  2. Determine the Solr version in use; versions 5.0.0 through 8.3.1 are affected.
  3. Where possible, move to Solr 8.4 or later, which removed the params resource loader and restricts configset template rendering to trusted configsets.
  4. Restrict configuration API access and configset uploads to authenticated, trusted administrators.
  5. Limit network exposure of Solr to trusted clients only, and restart Solr after any configuration change.

Debian plans no fix for lucene-solr on bookworm, trixie or forky. Keep parameter-provided templates disabled, review response writer definitions for the params resource loader setting, and remove untrusted configsets. Require authentication for the configuration API and configset uploads. Block Solr from untrusted networks with a firewall or reverse proxy.

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"'

No fixed version available

No Ubuntu or Debian release has published a fixed version of lucene-solr yet, so every installed version is affected. Until a fix is published:

  • Follow the vendor's advisory for a mitigation or patch: lists.apache.org/thread.html/rb964fe5c4e3fc05f75e8f74bf6b…
  • If the server does not need the package, remove it, or replace it with a maintained alternative.
  • Restrict exposure: keep the affected service off the internet, limit access with a firewall or VPN, and turn off the vulnerable feature where you can.

This page updates automatically when Ubuntu or Debian publish a fix.

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-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Questions about CVE-2019-17558

Is this vulnerability actively exploited?
Yes. CISA added CVE-2019-17558 to its Known Exploited Vulnerabilities catalog on 2021-11-03. Its required action is to apply updates per vendor instructions. Known ransomware use is listed as unknown.
Will Debian release a fixed lucene-solr package?
According to the facts, Debian rates this issue unimportant for Debian 12 (bookworm), Debian 13 (trixie) and Debian 14 (forky) and plans no fix. Rely on configuration hardening and access restrictions instead.
Is a default Solr setup exposed?
Parameter-provided templates are disabled by default, and enabling them requires configuration API access. However, a user-defined configset can contain malicious templates. Solr 8.4 only renders configset templates when the configset is trusted, meaning it was uploaded by an authenticated user.

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-22. Always confirm with the vendor's or distribution's advisory before patching.