Ansible-operator-plugins: ansible operator plugins: arbitrary code execution via jinja2 template injection
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2.6 | affected |
|
||||||
| Red Hat | Red Hat Ansible Automation Platform 2.7 | affected |
|
||||||
| Red Hat | Red Hat OpenShift Service Mesh 3.4 | affected |
|
||||||
| Red Hat | Migration Toolkit for Applications 8 | affected | — | ||||||
| Red Hat | Migration Toolkit for Containers | affected | — | ||||||
| Red Hat | Migration Toolkit for Virtualization | affected | — | ||||||
| Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | unaffected | — | ||||||
| Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | unaffected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — | ||||||
| Red Hat | Red Hat OpenShift Container Platform 4 | affected | — | ||||||
| Red Hat | Red Hat OpenShift Container Platform 4 | unaffected | — | ||||||
| Red Hat | Red Hat OpenShift Container Platform 4 | affected | — | ||||||
| Red Hat | Red Hat OpenShift Container Platform 5 | affected | — | ||||||
| Red Hat | Red Hat OpenShift Container Platform 5 | unaffected | — | ||||||
| Red Hat | Red Hat OpenShift Virtualization 4 | unaffected | — | ||||||
| Red Hat | Red Hat OpenStack Platform 16.2 | affected | — | ||||||
| Red Hat | Red Hat OpenStack Platform 17.1 | affected | — | ||||||
| Red Hat | Red Hat OpenStack Platform 18.0 | affected | — | ||||||
| Red Hat | Service Telemetry Framework 1.5 | unaffected | — | ||||||
| Red Hat | Service Telemetry Framework 1.5 | unaffected | — |
No data.
No data.
No data available yet.
Vendor Workaround
To mitigate this vulnerability, configure the Ansible Operator watch to explicitly mark custom resource (CR) spec values as unsafe. This can be achieved by setting `markUnsafe: true` in the `watches.yaml` configuration for the affected operator. This action prevents Jinja2 template injection by ensuring CR spec fields are not evaluated as templates. A restart of the operator pod may be required for the changes to take effect.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.472% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift:5 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:service_mesh:3.4::el9 | |
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:ansible_automation_platform:2.6::el9 cpe:/a:redhat:ansible_automation_platform:2.7::el9 |
|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | A flaw was found in Ansible Operator Plugins. A low-privileged Kubernetes user can exploit a Jinja2 template injection vulnerability by crafting malicious custom resource (CR) specification values. These values are processed by Ansible without proper sanitization, allowing embedded Jinja2 expressions to be executed within the operator pod. This can lead to arbitrary code execution and privilege escalation, granting the attacker control over the operator's service account with cluster-wide permissions. | |
| Title | Ansible-operator-plugins: ansible operator plugins: arbitrary code execution via jinja2 template injection | |
| First Time appeared |
Redhat
Redhat acm Redhat ansible Automation Platform Redhat container Native Virtualization Redhat migration Toolkit Applications Redhat migration Toolkit Virtualization Redhat openshift Redhat openstack Redhat rhmt Redhat service Mesh Redhat stf |
|
| Weaknesses | CWE-1336 | |
| CPEs | cpe:/a:redhat:acm:2 cpe:/a:redhat:ansible_automation_platform:2 cpe:/a:redhat:container_native_virtualization:4 cpe:/a:redhat:migration_toolkit_applications:8 cpe:/a:redhat:migration_toolkit_virtualization:2 cpe:/a:redhat:openshift:4 cpe:/a:redhat:openstack:16.2 cpe:/a:redhat:openstack:17.1 cpe:/a:redhat:openstack:18.0 cpe:/a:redhat:rhmt:1 cpe:/a:redhat:service_mesh:3 cpe:/a:redhat:stf:1.5 |
|
| Vendors & Products |
Redhat
Redhat acm Redhat ansible Automation Platform Redhat container Native Virtualization Redhat migration Toolkit Applications Redhat migration Toolkit Virtualization Redhat openshift Redhat openstack Redhat rhmt Redhat service Mesh Redhat stf |
|
| References |
| |
| Metrics |
cvssV3_1
|