# CVE-2023-50298: Apache Solr: Solr can expose ZooKeeper credentials via Streaming Expressions

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.70% (percentile 78, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** BIT-solr-2023-50298, GHSA-xrj7-x7gp-wwqr
- **Published:** 2024-02-09T17:29:07.889Z
- **Modified:** 2026-09-10T03:50:00.387Z

## Who should check

- Projects that depend on Maven package org.apache.solr:solr-solrj-streaming (\>= 9.0.0, \< 9.4.1)
- Projects that depend on Maven package org.apache.solr:solr-solrj (\>= 9.0.0, \< 9.4.1)
- Anyone running Apache Software Foundation Apache Solr \>= 6.0.0, \<= 8.11.2; \>= 9.0.0, \< 9.4.1

## Description

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.

## Affected and fixed versions

- Maven `org.apache.solr:solr-solrj-streaming`: affected \>= 9.0.0, \< 9.4.1; fixed 9.4.1, 8.11.3 (osv)
- Maven `org.apache.solr:solr-solrj`: affected \>= 9.0.0, \< 9.4.1; fixed 9.4.1, 8.11.3 (osv)
- Apache Software Foundation Apache Solr: \>= 6.0.0, \<= 8.11.2; \>= 9.0.0, \< 9.4.1 (cvelist)

## Mitigation

- Upgrade org.apache.solr:solr-solrj-streaming to one of 9.4.1, 8.11.3 (or later in the same release line).
- Upgrade org.apache.solr:solr-solrj to one of 9.4.1, 8.11.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-50298. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-50298.md
Affected: org.apache.solr:solr-solrj-streaming >= 9.0.0, < 9.4.1; org.apache.solr:solr-solrj >= 9.0.0, < 9.4.1
Fixed in: 9.4.1, 8.11.3

Steps:
1. Search this machine and project for org.apache.solr:solr-solrj-streaming (Maven), org.apache.solr:solr-solrj (Maven), Apache Software Foundation Apache Solr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-50298 being exploited?

There is no confirmed exploitation: CVE-2023-50298 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.70% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-50298?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-50298?

org.apache.solr:solr-solrj-streaming \>= 9.0.0, \< 9.4.1; org.apache.solr:solr-solrj \>= 9.0.0, \< 9.4.1.

### Is there a fix for CVE-2023-50298?

Yes. Fixed in 9.4.1, 8.11.3. Upgrade org.apache.solr:solr-solrj-streaming to one of 9.4.1, 8.11.3 (or later in the same release line). Upgrade org.apache.solr:solr-solrj to one of 9.4.1, 8.11.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-50298?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://solr.apache.org/security.html#cve-2023-50298-apache-solr-can-expose-zookeeper-credentials-via-streaming-expressions>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-50298>
- patch: <https://github.com/apache/lucene-solr/commit/61c956c426b2cfb85ccef55d1afca4335eacd269>
- patch: <https://github.com/apache/solr/commit/e2bf1f434aad873fbb24c21d46ac00e888806d98>
- other: <http://www.openwall.com/lists/oss-security/2024/02/09/3>
- other: <http://www.openwall.com/lists/oss-security/2024/02/09/2>
- other: <https://github.com/apache/solr>
- other: <https://issues.apache.org/jira/browse/SOLR-17098>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-50298>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xrj7-x7gp-wwqr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-50298> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-50298>
