CVE-2021-27905SSRF vulnerability with the Replication handler
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.
What to do
Likely to be exploited: EPSS gives a 93% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | lucene-solr | Fix pending | UBUNTU-CVE-2021-27905 | |
| Ubuntu 26.04 | lucene-solr | Under investigation | UBUNTU-CVE-2021-27905 | |
| Ubuntu 25.10 | lucene-solr | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-27905 | |
| Ubuntu 24.04 | lucene-solr | Under investigation | UBUNTU-CVE-2021-27905 | |
| Ubuntu 22.04 | lucene-solr | Under investigation | UBUNTU-CVE-2021-27905 | |
| Ubuntu 20.04 | lucene-solr | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-27905 | |
| Ubuntu 18.04 | lucene-solr | Fix pending | UBUNTU-CVE-2021-27905 | |
| Ubuntu 16.04 | lucene-solr | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-27905 | |
| Ubuntu 14.04 | lucene-solr | Fix pending | UBUNTU-CVE-2021-27905 | |
| Debian 14 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2021-27905 |
| Debian 13 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2021-27905 |
| Debian 12 | lucene-solr | Fixed | 3.6.2+dfsg-23 | DEBIAN-CVE-2021-27905 |
| Maven library | org.apache.solr:solr-parent | Fixed | 8.8.2 | GHSA-5phw-3jrp-3vj8 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Solr: affected: Apache Solr to before 8.8.2; fixed in
8.8.2
Workaround: Ensure that any access to the replication handler is purely internal to Solr. Typically, it's only accessed externally for diagnostic/informational purposes.
References
- https://lists.apache.org/thread.html/r0ddc3a82bd7523b1453cb7a5e09eb5559517145425074a42eb326b10%40%3Cannounce.apache.org%3E
- https://security.netapp.com/advisory/ntap-20210611-0009/
- https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.org%3E
- https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.org%3E
- https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.org%3E
- https://lists.apache.org/thread.html/rae9ccaecce9859f709ed1458545d90a4c07163070dc98b5e9e59057f%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r720a4a0497fc90bad5feec8aa18b777912ee15c7eeb5f882adbf523e%40%3Ccommits.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/re9d64bb8e5dfefddcbf255adb4559e13a0df5b818da1b9b51329723f%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rd232d77c57a8ce172359ab098df9512d8b37373ab87c444be911b430%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r78a3a4f1138a1608b0c6d4a2ee7647848c1a20b0d5c652cd9b02c25a%40%3Ccommits.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r6ccec7fc54d82591b23c143f1f6a6e38f6e03e75db70870e4cb14a1a%40%3Ccommits.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r8f1152a43c36d878bbeb5a92f261e9efaf3af313b033d7acfccea59d%40%3Cnotifications.ofbiz.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.