CVE-2024-31391 json
Apache Solr Operator: Solr-Operator liveness and readiness probes may leak basic auth credentials
published 2024-04-12 2 y ago modified 2026-06-17 4 mo ago also GHSA-g9qx-25vj-rf53 , GO-2024-2723 , EUVD-2024-1206
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
Insertion of Sensitive Information into Log File vulnerability in the Apache Solr Operator.
This issue affects all versions of the Apache Solr Operator from 0.3.0 through 0.8.0.
When asked to bootstrap Solr security, the operator will enable basic authentication and create several accounts for accessing Solr: including the "solr" and "admin" accounts for use by end-users, and a "k8s-oper" account which the operator uses for its own requests to Solr. One common source of these operator requests is healthchecks: liveness, readiness, and startup probes are all used to determine Solr's health and ability to receive traffic. By default, the operator configures the Solr APIs used for these probes to be exempt from authentication, but users may specifically request that authentication be required on probe endpoints as well. Whenever one of these probes would fail, if authentication was in use, the Solr Operator would create a Kubernetes "event" containing the username and password of the "k8s-oper" account.
Within the affected version range, this vulnerability affects any solrcloud resource which (1) bootstrapped security through use of the `.solrOptions.security.authenticationType=basic` option, and (2) required authentication be used on probes by setting `.solrOptions.security.probesRequireAuth=true`.
Users are recommended to upgrade to Solr Operator version 0.8.1, which fixes this issue by ensuring that probes no longer print the credentials used for Solr requests. Users may also mitigate the vulnerability by disabling authentication on their healthcheck probes using the setting `.solrOptions.security.probesRequireAuth=false`.
Patch / fix
- go github.com/apache/solr-operator 0.8.1
- apache solr_operator 0.8.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-31391 updated cvss 6.5
solr: Solr-Operator liveness and readiness probes may leak basic auth credentials
-
Red Hat Fuse 7 solr solr Red Hat Integration Camel K 1 solr solr Red Hat JBoss Fuse Service Works 6 solr solraffected: workaround, no fix planned “This issue can be mitigated by disabling authentication on the health check probes by setting the following configuration option: .solrOptions.security.probesRequireAuth=false”
-
Red Hat build of Apache Camel for Spring Boot 3 solr solr Red Hat Data Grid 8 solr solr Red Hat JBoss Enterprise Application Platform 8 solr solrnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/apache/solr-operator | >=0.3.0, <0.8.1 |
0.8.1 |
Affected products
- Apache Software Foundation Apache Solr Operator
Classification
- Weakness
-
- CWE-532 Insertion of Sensitive Information into Log File
References
-
lists.apache.org
/thread/w7011s78lzywzwyszvy4d8zm99ybt8c7
vendor-advisory, web, mailing-list
-
openwall.com
/lists/oss-security/2024/04/12/7
web, mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2024-31391
advisory
-
github.com
/apache/solr-operator
package
-
github.com
/advisories/GHSA-g9qx-25vj-rf53
advisory
Sources
- CVE List CVE-2024-31391
- GitHub Advisory GHSA-g9qx-25vj-rf53
- NVD CVE-2024-31391
- OSV GO-2024-2723
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.