Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-31391
vulnerability analysis and mitigation

Overview

CVE-2024-31391 is a sensitive information exposure vulnerability affecting the Apache Solr Operator versions 0.3.0 through 0.8.0. The vulnerability was discovered by Flip Hess and publicly disclosed in April 2024. The issue occurs when the Solr Operator is configured to bootstrap security with basic authentication and requires authentication for probe endpoints (Apache Security).

Technical details

The vulnerability occurs when two specific conditions are met: (1) security is bootstrapped using the .solrOptions.security.authenticationType=basic option, and (2) authentication is required on probe endpoints via .solrOptions.security.probesRequireAuth=true. When these conditions are present, failed health check probes (including liveness, readiness, and startup probes) cause the Solr Operator to create Kubernetes events that contain the username and password of the 'k8s-oper' account, which the operator uses for its own requests to Solr (Apache Security).

Impact

The vulnerability exposes sensitive authentication credentials through Kubernetes events. If an attacker gains access to these events, they could obtain the 'k8s-oper' account credentials, potentially allowing unauthorized access to the Solr instance with operator-level privileges (Apache Security).

Exploitability

The vulnerability is exploitable when specific configuration options are enabled. An attacker with access to Kubernetes events could potentially view the exposed credentials when health check probes fail (Apache Security).

Mitigation and workarounds

Users are recommended to upgrade to Solr Operator version 0.8.1, which fixes the issue by ensuring probes no longer print the credentials used for Solr requests. Alternatively, users can mitigate the vulnerability by disabling authentication on their healthcheck probes using the setting .solrOptions.security.probesRequireAuth=false (Apache Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management