CVE-2026-61830: RabbitMQ Cluster Operator: Shell Command Injection via `spec.rabbitmq.envConfig`
RabbitMQ Cluster Kubernetes Operator deploys and manages RabbitMQ clusters. Prior to version 2.21.0, a namespace-scoped user with create permission on RabbitmqCluster CRs — but no create pods or pods/exec permission — can inject arbitrary shell commands via spec.rabbitmq.envConfig. The operator writes this field verbatim into a ConfigMap, which is mounted at /etc/rabbitmq/rabbitmq-env.conf and sourced as a shell script by RabbitMQ's startup. No webhook or validation exists for this field's content. This issue has been patched in version 2.21.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
RabbitMQ Cluster Kubernetes Operatorto a version that resolves this vulnerability.Fixed in 2.21.0
Event History
Frequently Asked Questions
Who can exploit this issue?
A namespace-scoped user who can create RabbitmqCluster custom resources can exploit it, even if they do not have permission to create Pods or use pods/exec. The impact is limited to environments running a vulnerable RabbitMQ Cluster Operator version before 2.21.0.
What input reaches the shell, and why is it dangerous?
The operator writes spec.rabbitmq.envConfig verbatim to a ConfigMap mounted as /etc/rabbitmq/rabbitmq-env.conf. RabbitMQ sources that file as a shell script during startup, so shell commands placed in the field can run.
Is there validation that prevents malicious envConfig values?
No. The affected operator has no webhook or other validation for the content of spec.rabbitmq.envConfig.
What is the available fix?
Upgrade the RabbitMQ Cluster Operator to version 2.21.0, which patches this issue.