CVE-2023-50290: Apache Solr allows read access to host environmet variables
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Solr. The Solr Metrics API publishes all unprotected environment variables available to each Apache Solr instance. Users are able to specify which environment variables to hide, however, the default list is designed to work for known secret Java system properties.
Published Jan 15, 2024 · Updated Jan 22, 2024
Affected packages
org.apache.solr:solr-core
- Ecosystem
- Maven
- Affected
- >= 9.0.0, < 9.3.0
- Fixed in
- 9.3.0
- Check
mvn dependency:tree -Dincludes=org.apache.solr:solr-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Solr.
The Solr Metrics API publishes all unprotected environment variables available to each Apache Solr instance. Users are able to specify which environment variables to hide, however, the default list is designed to work for known secret Java system properties. Environment variables cannot be strictly defined in Solr, like Java system properties can be, and may be set for the entire host, unlike Java system properties which are set per-Java-proccess.
The Solr Metrics API is protected by the "metrics-read" permission. Therefore, Solr Clouds with Authorization setup will only be vulnerable via users with the "metrics-read" permission.
This issue affects Apache Solr: from 9.0.0 before 9.3.0.
Users are recommended to upgrade to version 9.3.0 or later, in which environment variables are not published via the Metrics API.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-50290
- https://solr.apache.org/security.html#cve-2023-50290-apache-solr-allows-read-access-to-host-environment-variables
- https://github.com/apache/solr/commit/35fc4bdc48171d9a64251c54a1e76deb558cf9d8
- https://issues.apache.org/jira/browse/SOLR-16808
- https://github.com/advisories/GHSA-gg7w-pw2r-x2cq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-44825
Apache Solr has hardcoded credentials in the Basic Authentication setup tool
high8.1No fixJun 1, 2026CVE-2026-22022
Apache Solr: Unauthorized bypass of certain "predefined permission" rules in the RuleBasedAuthorizationPlugin
high8.2Jan 21, 2026CVE-2026-22444
Apache Solr: Insufficient file-access checking in standalone core-creation requests
high7.1Jan 21, 2026CVE-2024-52012
Apache Solr Relative Path Traversal vulnerability
medium6.6Jan 27, 2025CVE-2025-24814
Apache Solr vulnerable to Execution with Unnecessary Privileges
high7.2Jan 27, 2025CVE-2023-50291
Apache Solr can leak certain passwords due to System Property redaction logic inconsistencies
high7.5Feb 9, 2024
