{"answers":{"affected":"3 open source packages ship an affected version, including github.com/apache/solr-operator. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-31391 in the wild and no public exploit code.","fix":"Upgrade github.com/apache/solr-operator to 0.8.1 or later.","what":"CVE-2024-31391 is a medium-severity vulnerability in Apache Solr Operator, published on 12 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-31391 and fix it if it is affected.\n\nWhat it is: CVE-2024-31391 is a medium-severity vulnerability in Apache Solr Operator, published on 12 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-31391 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/apache/solr-operator (Go): affected from 0.3.0; fixed in 0.8.1\n- github.com/apache/solr-operator (Go): affected from 0.3.0; fixed in 0.8.1\n- github.com/apache/solr-operator (Go): affected from 0.3.0; fixed in 0.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-31391/ (Markdown: https://insights.sbomify.com/CVE-2024-31391/index.md)","id":"CVE-2024-31391","markdown":"https://insights.sbomify.com/CVE-2024-31391/index.md","name":"CVE-2024-31391","record":{"aliases":["GHSA-g9qx-25vj-rf53","GO-2024-2723"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Solr Operator","requires_auth":"low_privilege","summary":"An attacker with access to Kubernetes events can read basic auth credentials leaked by Solr Operator probes when authentication is enabled on health checks.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"solr_operator","vendor":"apache"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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`.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Solr Operator: Solr-Operator liveness and readiness probes may leak basic auth credentials","id":"CVE-2024-31391","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Security feature bypass in Firefox for iOS","id":"CVE-2024-31392"},"packages":[{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0.3.0"],"last_affected":[],"package":"github.com/apache/solr-operator","purl":null,"source":"GHSA-g9qx-25vj-rf53"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0.3.0"],"last_affected":[],"package":"github.com/apache/solr-operator","purl":"pkg:golang/github.com/apache/solr-operator","source":"GHSA-g9qx-25vj-rf53"},{"ecosystem":"Go","fixed":["0.8.1"],"introduced":["0.3.0"],"last_affected":[],"package":"github.com/apache/solr-operator","purl":"pkg:golang/github.com/apache/solr-operator","source":"GO-2024-2723"}],"prev":{"headline":"WordPress Breakdance plugin \u003c= 1.7.2 - Authenticated Remote Code Execution (RCE) vulnerability","id":"CVE-2024-31390"},"products":["Apache Solr Operator"],"published":"2024-04-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-13","vendors":["Apache Software Foundation"]},"summary":"An attacker with access to Kubernetes events can read basic auth credentials leaked by Solr Operator probes when authentication is enabled on health checks.","url":"https://insights.sbomify.com/CVE-2024-31391/"}