#VU23850 Code Injection in Apache Solr


Published: 2020-04-02 | Updated: 2020-12-16

Vulnerability identifier: #VU23850

Vulnerability risk: Medium

CVSSv3.1: 6.9 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C]

CVE-ID: CVE-2019-17558

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Apache Solr
Client/Desktop applications / Other client software

Vendor: Apache Foundation

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation in VelocityResponseWriter, when "params.resource.loader.enabled" is set to true in Apache Solr configuration. A remote authenticated user with ability to load templates or change software configuration can inject a malicious template and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Apache Solr: 8.3.0 - 8.3.1, 8.2.0, 8.1.0 - 8.1.1, 8.0.0, 7.7.0 - 7.7.2, 7.6.0, 7.5.0, 7.4.0, 7.2 - 7.2.1, 7.1 - 7.1.0, 7.3.0 - 7.3.1, 7.0.0 - 7.0.1, 6.6 - 6.6.6, 6.5 - 6.5.1, 6.4 - 6.4.2, 6.3 - 6.3.0, 6.2 - 6.2.1, 6.1 - 6.1.0, 6.0 - 6.0.1, 5.5 - 5.5.5, 5.4 - 5.4.1, 5.3 - 5.3.2, 5.2 - 5.2.1, 5.1 - 5.1.0, 5.0.0


External links
http://cwiki.apache.org/confluence/display/solr/SolrSecurity
http://issues.apache.org/jira/browse/SOLR-13971
http://issues.apache.org/jira/browse/SOLR-14025


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability