cve.bz

CVE-2021-27905 apache solr: SSRF

9.8 criticalEPSS 93%Fix available

Critical (9.8) in apache solr. EPSS 93% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.solr:solr-parent 8.8.2.

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

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
93% (unchanged from 93% a week ago; 93% 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.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27905 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27905?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27905?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-2021-27905 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 CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Solrfrom Apache Solr before 8.8.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5phw-3jrp-3vj8Mavenorg.apache.solr:solr-parent<8.8.28.8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14lucene-solr3.6.2+dfsg-23DEBIAN-CVE-2021-27905
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 6 morelucene-solrno fix listedUBUNTU-CVE-2021-27905

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

Restrict access to the replication handler to only internal Solr instances.

ProductPackageStateAdvisory
Red Hat Fuse 7solrNot affected
Red Hat Integration Camel K 1camel-solrNot affected
Red Hat JBoss Data Virtualization 6solrOut of support scope
Red Hat JBoss Enterprise Application Platform 6solrOut of support scope
Red Hat JBoss Fuse 6solrOut of support scope
Red Hat JBoss Fuse Service Works 6solrOut of support scope
Red Hat JBoss Web Server 3solrNot affected

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-2021-27905.

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-664 Server Side Request Forgery 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