CVE-2023-50298: Solr solrj streaming Apache Solr's Streaming Expressions Allow Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj-streaming</artifactId>
<version>9.4.1</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj-streaming</artifactId>
<version>8.11.3</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>9.4.1</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>8.11.3</version>
</dependency>
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
CVE-2023-50298 Affected Solr solrj streaming Versions
4 component(s)| 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?
Which Solr solrj streaming versions are affected?
What version fixes CVE-2023-50298?
Is solr-solrj-streaming affected?
Is solr-solrj affected?
What is the CVSS score of CVE-2023-50298?
What CWE is associated with CVE-2023-50298?
How can I check Maven dependencies for CVE-2023-50298?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}