Skip to content
OpenAdvisories
Medium · 6.5 Scanner template Public exploit CVE-2023-50290 BIT-solr-2023-50290EUVD-2024-0354GHSA-gg7w-pw2r-x2cq

Apache Solr: Host environment variables are published via the Metrics API

Published Jan 15, 2024 · Updated May 9, 2025 · Assigned by apache

Description

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Solr 9.0.0 – < 9.3.0 9.3.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 lucene-solr No fix yet —
Ubuntu 26.04 LTS lucene-solr No fix yet —
Ubuntu 25.10 lucene-solr No fix yet —
Ubuntu 24.04 LTS lucene-solr No fix yet —
Ubuntu 22.04 LTS lucene-solr No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS lucene-solr No fix yet —
Ubuntu Pro 18.04 LTS lucene-solr No fix yet —
Ubuntu Pro 16.04 LTS lucene-solr No fix yet —
Ubuntu Pro 14.04 LTS lucene-solr No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.solr:solr-core >= 9.0.0, < 9.3.0 9.3.0 GHSA-gg7w-pw2r-x2cq

Advisories 1

References