{"cve":"CVE-2024-31391","nvd":{"published":"2024-04-12T15:15:26.157","modified":"2026-06-17T07:28:20.730","status":"Analyzed","description":"Insertion of Sensitive Information into Log File vulnerability in the Apache Solr Operator.\n\nThis issue affects all versions of the Apache Solr Operator from 0.3.0 through 0.8.0.\n\nWhen 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.\nOne 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.\nBy 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.\nWhenever 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.\n\nWithin 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`.\n\nUsers 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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-532"],"references":["http://www.openwall.com/lists/oss-security/2024/04/12/7","https://lists.apache.org/thread/w7011s78lzywzwyszvy4d8zm99ybt8c7","http://www.openwall.com/lists/oss-security/2024/04/12/7","https://lists.apache.org/thread/w7011s78lzywzwyszvy4d8zm99ybt8c7"],"products":["apache:solr_operator"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-31391","score":0.0084,"percentile":0.57853,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-g9qx-25vj-rf53","url":"https://osv.dev/vulnerability/GHSA-g9qx-25vj-rf53","summary":"Apache Solr Operator liveness and readiness probes may leak basic auth credentials","modified":"2025-02-13T19:01:24Z","packages":[{"ecosystem":"Go","name":"github.com/apache/solr-operator","purl":"pkg:golang/github.com/apache/solr-operator","ranges":[">=0.3.0 <0.8.1"],"fixed":["0.8.1"]}]},{"id":"GO-2024-2723","url":"https://osv.dev/vulnerability/GO-2024-2723","summary":"Apache Solr Operator liveness and readiness probes may leak basic auth credentials in github.com/apache/solr-operator","modified":"2026-03-03T04:55:01.324507Z","packages":[{"ecosystem":"Go","name":"github.com/apache/solr-operator","purl":"pkg:golang/github.com/apache/solr-operator","ranges":[">=0.3.0 <0.8.1"],"fixed":["0.8.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}