cve.bz

CVE-2024-31391 apache solr operator

6.5 mediumEPSS 0.8%Fix available

Medium (6.5) in apache solr operator. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/apache/solr-operator 0.8.1.

On this page
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`.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-532 Insertion of Sensitive Information into Log File
OWASP Top 10
A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • github.com/apache/solr-operator (Go): fixed in 0.8.1

Ask an AI about this CVE

Show the promptExplain CVE-2024-31391 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-31391?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-31391?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-31391 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Solr Operatorfrom 0.3.0 through 0.8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g9qx-25vj-rf53Gogithub.com/apache/solr-operator>=0.3.0 <0.8.10.8.1
GO-2024-2723Gogithub.com/apache/solr-operator>=0.3.0 <0.8.10.8.1

Red Hat

Red Hat rates this Moderate.

Red Hat's 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's mitigation

This issue can be mitigated by disabling authentication on the health check probes by setting the following configuration option:

.solrOptions.security.probesRequireAuth=false

ProductPackageStateAdvisory
Red Hat build of Apache Camel for Spring Boot 3solrNot affected
Red Hat Data Grid 8solrNot affected
Red Hat Fuse 7solrWill not fix
Red Hat Integration Camel K 1solrWill not fix
Red Hat JBoss Enterprise Application Platform 8solrNot affected
Red Hat JBoss Fuse Service Works 6solrOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-31391.

Attack patterns (CAPEC)

  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON