Apache Solr Operator: Solr-Operator liveness and readiness probes may leak basic auth credentials
Published Apr 12, 2024
5.7
MEDIUMCVSS 4.0
EPSS 0.84%
Description
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`.
Affected products
-
- Version 0.3.0StatusaffectedConstraints<=0.8.0
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache Solr Operator | unaffected |
|
- ≥ 0.3.0 · < 0.8.1
No data.
Red Hat Data Grid 8
solr
Not affected
Red Hat Fuse 7
solr
Will not fix
Red Hat Integration Camel K 1
solr
Will not fix
Red Hat JBoss Enterprise Application Platform 8
solr
Not affected
Red Hat JBoss Fuse Service Works 6
solr
Out of support scope
Red Hat build of Apache Camel for Spring Boot 3
solr
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Data Grid 8 | solr | Not affected | n/a |
| Red Hat Fuse 7 | solr | Will not fix | n/a |
| Red Hat Integration Camel K 1 | solr | Will not fix | n/a |
| Red Hat JBoss Enterprise Application Platform 8 | solr | Not affected | n/a |
| Red Hat JBoss Fuse Service Works 6 | solr | Out of support scope | n/a |
| Red Hat build of Apache Camel for Spring Boot 3 | solr | Not affected | n/a |
github.com/apache/solr-operator
Go
Introduced 0.3.0 Fixed 0.8.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/apache/solr-operator | 0.3.0 | 0.8.1 |
Remediation
Red Hat statement
This vulnerability only affects solrcloud resources that use .solrOptions.security.authenticationType=basic and require authentication on probes by setting .solrOptions.security.probesRequireAuth=true
Red Hat mitigation
This issue can be mitigated by disabling authentication on the health check probes by setting the following configuration option: .solrOptions.security.probesRequireAuth=false
References (7)
- http://www.openwall.com/lists/oss-security/2024/04/12/7 Mailing List
- https://access.redhat.com/security/cve/CVE-2024-31391 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2277242 Issue Tracking
- https://github.com/advisories/GHSA-g9qx-25vj-rf53 Advisory
- https://lists.apache.org/thread/w7011s78lzywzwyszvy4d8zm99ybt8c7 vendor-advisoryMailing List
- https://nvd.nist.gov/vuln/detail/CVE-2024-31391
- https://www.cve.org/CVERecord?id=CVE-2024-31391
| Link | Providers | Tags |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2024/04/12/7 | Mailing List | |
| https://access.redhat.com/security/cve/CVE-2024-31391 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2277242 | Issue Tracking | |
| https://github.com/advisories/GHSA-g9qx-25vj-rf53 | Advisory | |
| https://lists.apache.org/thread/w7011s78lzywzwyszvy4d8zm99ybt8c7 | vendor-advisoryMailing List | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-31391 | ||
| https://www.cve.org/CVERecord?id=CVE-2024-31391 |
Change history (0)
No recorded changes yet.