Skip to content
Heist/ feed
Back to feed
Critical

lucene-solr — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-27905

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.

Products
lucene-solr
Affected versions
3.6.2+dfsg-1, 3.6.2+dfsg-10, 3.6.2+dfsg-11, 3.6.2+dfsg-18~18.04, 3.6.2+dfsg-18~18.04.1~esm2, 3.6.2+dfsg-2, 3.6.2+dfsg-20, 3.6.2+dfsg-22, 3.6.2+dfsg-24, 3.6.2+dfsg-26, 3.6.2+dfsg-27, 3.6.2+dfsg-2ubuntu0.1~esm1, 3.6.2+dfsg-2ubuntu0.1~esm2, 3.6.2+dfsg-2ubuntu0.1~esm4, 3.6.2+dfsg-7, 3.6.2+dfsg-8, 3.6.2+dfsg-8ubuntu0.1, 3.6.2+dfsg-8ubuntu0.1+esm1
Fixed versions
Not specified
CVEs
CVE-2021-27905
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:36 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-27905

core-osv · Original source

Published 13 Apr 2021, 07:15 UTC

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.

osv:UBUNTU-CVE-2021-27905

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

lucene-solr

Fixed versions: Not specified

Complete source record
{
  "id": "e1f98f3501c10548948927096bd0f53ae3fd612050bfbf0fb4a3d9c8e3470423",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-27905",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-27905",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-27905",
    "products": [
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2+dfsg-2ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2+dfsg-2ubuntu0.1~esm2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2+dfsg-2ubuntu0.1~esm4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.6.2+dfsg-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.6.2+dfsg-8ubuntu0.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.6.2+dfsg-8ubuntu0.1+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-10",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.6.2+dfsg-11",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.6.2+dfsg-18~18.04",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.6.2+dfsg-18~18.04.1~esm2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-20",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.6.2+dfsg-22",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-24",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-26",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-26",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-27",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "lucene-solr",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2+dfsg-26",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "3.6.2+dfsg-27",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-27905",
      "aliases": [
        "UBUNTU-CVE-2021-27905"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-1",
            "3.6.2+dfsg-2",
            "3.6.2+dfsg-2ubuntu0.1~esm1",
            "3.6.2+dfsg-2ubuntu0.1~esm2",
            "3.6.2+dfsg-2ubuntu0.1~esm4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              },
              {
                "binary_name": "libsolr-java",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              },
              {
                "binary_name": "solr-common",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              },
              {
                "binary_name": "solr-jetty",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              },
              {
                "binary_name": "solr-tomcat",
                "binary_version": "3.6.2+dfsg-2ubuntu0.1~esm4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-7",
            "3.6.2+dfsg-8",
            "3.6.2+dfsg-8ubuntu0.1",
            "3.6.2+dfsg-8ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              },
              {
                "binary_name": "libsolr-java",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              },
              {
                "binary_name": "solr-common",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              },
              {
                "binary_name": "solr-jetty",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              },
              {
                "binary_name": "solr-tomcat",
                "binary_version": "3.6.2+dfsg-8ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-10",
            "3.6.2+dfsg-11",
            "3.6.2+dfsg-18~18.04",
            "3.6.2+dfsg-18~18.04.1~esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              },
              {
                "binary_name": "libsolr-java",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              },
              {
                "binary_name": "solr-common",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              },
              {
                "binary_name": "solr-jetty",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              },
              {
                "binary_name": "solr-tomcat",
                "binary_version": "3.6.2+dfsg-18~18.04.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-20",
            "3.6.2+dfsg-22"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-22"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-22"
              },
              {
                "binary_name": "libsolr-java",
                "binary_version": "3.6.2+dfsg-22"
              },
              {
                "binary_name": "solr-common",
                "binary_version": "3.6.2+dfsg-22"
              },
              {
                "binary_name": "solr-jetty",
                "binary_version": "3.6.2+dfsg-22"
              },
              {
                "binary_name": "solr-tomcat",
                "binary_version": "3.6.2+dfsg-22"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-24"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-24"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-24"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-26"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-26"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-26"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.6.2+dfsg-26"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-26"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-26"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.6.2+dfsg-27"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-27"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-27"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "lucene-solr",
            "purl": "pkg:deb/ubuntu/lucene-solr?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.6.2+dfsg-26",
            "3.6.2+dfsg-27"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-27905.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "liblucene3-contrib-java",
                "binary_version": "3.6.2+dfsg-27"
              },
              {
                "binary_name": "liblucene3-java",
                "binary_version": "3.6.2+dfsg-27"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:12.539803951Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-27905"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-27905",
        "https://lists.apache.org/thread.html/r0ddc3a82bd7523b1453cb7a5e09eb5559517145425074a42eb326b10%40%3Cannounce.apache.org%3E",
        "https://www.cve.org/CVERecord?id=CVE-2021-27905"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-27905",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356907,
  "published_at": "2021-04-13T07:15:00+00:00"
}