Bug 2355222 (CVE-2025-2843) - CVE-2025-2843 observability-operator: Observability Operator privilege escalation
Summary: CVE-2025-2843 observability-operator: Observability Operator privilege escala...
Keywords:
Status: NEW
Alias: CVE-2025-2843
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 03:15 UTC by OSIDB Bzimport
Modified: 2025-06-12 20:06 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 03:15:29 UTC
The Custom Resource |MonitorStack| is defined at the Namespace scope
(https://github.com/rhobs/observability-operator/blob/73db74f3f56aa46b775e1b79003c093bb5c24ed6/deploy/crds/common/monitoring.rhobs_monitoringstacks.yaml#L16).
In Kubernetes, this means an account with namespaced Roles and without
ClusterRoles may deploy the Custom Resource.

The corresponding reconciler creates a ServiceAccount with ClusterRole
when deploying |MonitorStack|
(https://github.com/rhobs/observability-operator/blob/73db74f3f56aa46b775e1b79003c093bb5c24ed6/pkg/controllers/monitoring/monitoring-stack/components.go#L76,
https://github.com/rhobs/observability-operator/blob/73db74f3f56aa46b775e1b79003c093bb5c24ed6/pkg/controllers/monitoring/monitoring-stack/components.go#L82),
which means that an adversary with limited access (e.g., a malicious
tenant assigned only Role privileges within his namespace, or a
Kubernetes Workload compromised by an attacker with a Role-privileged
Service Account mounted) to a K8s cluster could deploy the
|MonitorStack| in their authorized namespace and then elevate his
permission to cluster level by impersonating the ServiceAccount created
by the Operator.


Note You need to log in before you can comment on or make changes to this bug.