Bug 2585452 (CVE-2026-137944)

Summary: CVE-2026-137944 keycloak-operator: keycloak-operator: proxy credentials sourced from a Secret are written in cleartext into operand StatefulSet env
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aschwart, aszczucz, boliveir, drichtar, mposolda, pjindal, rmartinc, security-response-team, ssilvert, sthorger, vmuzikar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Keycloak Operator. The operator copies proxy environment variables from its own environment into operand pod specifications as literal values. When the proxy configuration is provided through a Secret, the credential is written in cleartext into the operand StatefulSet, exposing it to users who can read workload objects but not Secrets in the namespace.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-27 13:49:41 UTC
A flaw was found in the Red Hat Build of Keycloak Operator. The operator copies the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables from its own process environment into the operands it manages and writes them as literal values into the operand container environment (KeycloakDeploymentDependentResource.getDefaultAndAdditionalEnvVars). When the operator environment is populated from a Kubernetes Secret, the kubelet resolves the Secret and the operator writes the proxy credential in cleartext into the Keycloak StatefulSet pod template. A user who can read workload objects such as StatefulSets but cannot read Secrets in that namespace, which is what the built-in view ClusterRole grants, can read the proxy credential from the StatefulSet spec. Confirmed on OpenShift 5.0.0 (CRC, Kubernetes v1.36.5) and on a k3s API server using default bootstrapped RBAC roles.