CVE-2021-27905: SSRF vulnerability with the Replication handler

CVE-2021-27905 affects 97 listed versions of Apache Solr in the Dawnsentry catalogue.

9.8CVSS critical
Proof of concept publicexploitation
93%EPSS (next 30 days)
13 April 2021published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apache Solr

97 of 128 listed versions are affected. Fixed in 8.8.2. The newest release, 10.1.0, is not affected.

8.8.1 8.8.0 8.7.0 8.6.3 8.6.2 8.6.1 8.6.0 8.5.2 8.5.1 8.5.0 8.4.1 8.4.0 8.3.1 8.3.0 8.2.0 8.1.2 8.1.1 8.1.0 8.0.0 7.7.3 7.7.2 7.7.1 7.7.0 7.7 7.6.0 7.5.0 7.4.0 7.3.1 7.3.0 7.2.1 7.2.0 7.1.0 7.0.1 7.0.0 6.6.6 6.6.5 6.6.4 6.6.3 6.6.2 6.6.1 6.6.0 6.5.1 6.5.0 6.4.2 6.4.1 6.4.0 6.3.0 6.2.1 6.2.0 6.1.0 6.0.1 6.0.0 5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.1 5.4.0 and 37 more

What it is

The ReplicationHandler (normally registered at "/replication" under a Solr core) in Apache Solr has a "masterUrl" (also "leaderUrl" alias) parameter that is used to designate another ReplicationHandler on another Solr core to replicate index data into the local core. To prevent a SSRF vulnerability, Solr ought to check these parameters against a similar configuration it uses for the "shards" parameter. Prior to this bug getting fixed, it did not. This problem affects essentially all Solr versions prior to it getting fixed in 8.8.2.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Apache Software Foundation on 13 April 2021. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2021-27905 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.