CVE-2023-50298: Solr solrj streaming Apache Solr's Streaming Expressions Allow Vulnerability

MODERATE
Advisory Identifier: GHSA-xrj7-x7gp-wwqr
CVSS 7.5
CWE-922 CWE-200
Published
Advisory Summary

CVE-2023-50298 is a MODERATE (CVSS 7.5) apache solr's streaming expressions allow vulnerability (CWE-922: Insecure Storage of Sensitive Information) affecting Solr solrj streaming libraries in the Maven ecosystem. The issue involves apache solr's streaming expressions allow users to extract data from other solr clouds. Remediation is available by upgrading affected packages to version 9.4.1, 8.11.3.

CVE-2023-50298 at a Glance

CVE Identifier CVE-2023-50298
GHSA Identifier GHSA-xrj7-x7gp-wwqr
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-922: Insecure Storage of Sensitive Information
Affected Product Solr solrj streaming
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-50298

To remediate this vulnerability, upgrade all affected Solr solrj streaming dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.solr:solr-solrj-streaming fixed: 9.4.1
<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj-streaming</artifactId>
    <version>9.4.1</version>
</dependency>
org.apache.solr:solr-solrj-streaming fixed: 8.11.3
<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj-streaming</artifactId>
    <version>8.11.3</version>
</dependency>
org.apache.solr:solr-solrj fixed: 9.4.1
<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj</artifactId>
    <version>9.4.1</version>
</dependency>
org.apache.solr:solr-solrj fixed: 8.11.3
<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj</artifactId>
    <version>8.11.3</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.solr

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-50298, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.solr

Analyze the terminal output to locate any version of Solr solrj streaming in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.4.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.solr command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-922: Insecure Storage of Sensitive Information, where the product stores sensitive information without properly limiting read or write access by unauthorized actors. In Solr solrj streaming, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Solr. This issue affects Apache Solr from 6.0.0 through 8.11.2, from 9.0.0 before 9.4.1. Solr Streaming Expressions allows users to extract data from other Solr Clouds, using a "zkHost" parameter. When original SolrCloud is setup to use ZooKeeper credentials and ACLs, they will be sent to whatever "zkHost" the user provides. An attacker could setup a server to mock ZooKeeper, that accepts ZooKeeper requests with credentials and ACLs and extracts the sensitive information, then send a streaming expression using the mock server's address in "zkHost". Streaming Expressions are exposed via the "/streaming" handler, with "read" permissions. Users are recommended to upgrade to version 8.11.3 or 9.4.1, which fix the issue. From these versions on, only zkHost values that have the same server address (regardless of chroot), will use the given ZooKeeper credentials and ACLs when connecting.

CVE-2023-50298 Affected Solr solrj streaming Versions

4 component(s)
Fixed Versions:
9.4.18.11.3
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.solr:solr-solrj-streaming
Maven
≥ 9.0.0
< 9.4.1
9.4.1
org.apache.solr:solr-solrj-streaming
Maven
≥ 6.0.0
< 8.11.3
8.11.3
org.apache.solr:solr-solrj
Maven
≥ 9.0.0
< 9.4.1
9.4.1
org.apache.solr:solr-solrj
Maven
≥ 6.0.0
< 8.11.3
8.11.3

References

Frequently Asked Questions

What is CVE-2023-50298?
CVE-2023-50298 is a security vulnerability in Solr solrj streaming involving Apache Solr's Streaming Expressions allow users to extract data from other Solr Clouds under CWE-922: Insecure Storage of Sensitive Information.
Which Solr solrj streaming versions are affected?
Affected versions include releases prior to 9.4.1, 8.11.3 across affected packages: org.apache.solr:solr-solrj-streaming, org.apache.solr:solr-solrj.
What version fixes CVE-2023-50298?
Upgrading to 9.4.1, 8.11.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is solr-solrj-streaming affected?
Yes, org.apache.solr:solr-solrj-streaming is affected in releases prior to 9.4.1, 8.11.3. Upgrade your dependency to 9.4.1, 8.11.3 or later.
Is solr-solrj affected?
Yes, org.apache.solr:solr-solrj is affected in releases prior to 9.4.1, 8.11.3. Upgrade your dependency to 9.4.1, 8.11.3 or later.
What is the CVSS score of CVE-2023-50298?
CVE-2023-50298 has a CVSS v3.1 base score of 7.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-50298?
CVE-2023-50298 is classified under CWE-922: Insecure Storage of Sensitive Information (The product stores sensitive information without properly limiting read or write access by unauthorized actors.).
How can I check Maven dependencies for CVE-2023-50298?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.solr'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xrj7-x7gp-wwqr",
  "modified" : "2024-08-19T20:48:46Z",
  "published" : "2024-02-09T18:31:07Z",
  "aliases" : [ "CVE-2023-50298" ],
  "summary" : "Apache Solr's Streaming Expressions allow users to extract data from other Solr Clouds",
  "details" : "Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Solr. This issue affects Apache Solr from 6.0.0 through 8.11.2, from 9.0.0 before 9.4.1.\n\nSolr Streaming Expressions allows users to extract data from other Solr Clouds, using a \"zkHost\" parameter.\n\nWhen original SolrCloud is setup to use ZooKeeper credentials and ACLs, they will be sent to whatever \"zkHost\" the user provides.\n\nAn attacker could setup a server to mock ZooKeeper, that accepts ZooKeeper requests with credentials and ACLs and extracts the sensitive information, then send a streaming expression using the mock server's address in \"zkHost\".\n\nStreaming Expressions are exposed via the \"/streaming\" handler, with \"read\" permissions.\n\nUsers are recommended to upgrade to version 8.11.3 or 9.4.1, which fix the issue.\n\nFrom these versions on, only zkHost values that have the same server address (regardless of chroot), will use the given ZooKeeper credentials and ACLs when connecting.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.solr:solr-solrj-streaming"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.solr:solr-solrj-streaming"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "8.11.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.solr:solr-solrj"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.solr:solr-solrj"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "8.11.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50298"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/lucene-solr/commit/61c956c426b2cfb85ccef55d1afca4335eacd269"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/solr/commit/e2bf1f434aad873fbb24c21d46ac00e888806d98"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/solr"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/SOLR-17098"
  }, {
    "type" : "WEB",
    "url" : "https://solr.apache.org/security.html#cve-2023-50298-apache-solr-can-expose-zookeeper-credentials-via-streaming-expressions"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/02/09/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/02/09/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-922" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T20:57:43Z",
    "nvd_published_at" : "2024-02-09T18:15:08Z"
  }
}