CVE-2026-92982

Ansible-operator-plugins: ansible operator plugins: arbitrary code execution via jinja2 template injection

Published Oct 15, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Ansible Operator Plugins contain an unsafe unsanitized input flaw that allows a low‑privileged Kubernetes user to inject Jinja2 expressions into custom resource specifications. When such expressions are processed by Ansible, they are executed inside the operator pod, providing the attacker with arbitrary code execution and the ability to elevate privileges to that of the operator's service account, which typically has cluster‑wide rights.

Affected Systems

Red Hat Migration Toolkit for Applications 8, Red Hat Migration Toolkit for Containers, Red Hat Migration Toolkit for Virtualization, Red Hat OpenShift Service Mesh 3, Red Hat Advanced Cluster Management for Kubernetes 2, Red Hat Ansible Automation Platform 2, Red Hat OpenShift Container Platform 4, Red Hat OpenShift Virtualization 4, Red Hat OpenStack Platform 16.2, Red Hat OpenStack Platform 17.1, Red Hat OpenStack Platform 18.0, and Red Hat Service Telemetry Framework 1.5.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity vulnerability. Because the attack requires only low‑privileged Kubernetes access and crafted custom resource values, an attacker with such credentials can directly inject malicious Jinja2 code. The exploit path is straightforward: submit a malicious custom resource, the operator evaluates it un‑sanitised, and arbitrary commands run under the operator service account. The EPSS score is currently not available, and the vulnerability is not listed in the CISA KEV catalog, but the high CVSS and the path of exploitation suggest a high risk for clusters that expose untrusted custom resources.

Remediation

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.


OpenCVE Recommended Actions

  • Configure the Ansible Operator watch to mark custom resource spec values as unsafe by adding `markUnsafe: true` in the `watches.yaml` configuration for the affected operator.
  • Restart the operator pod to force the operator to load the updated configuration.
  • Restrict custom resource creation to trusted users or namespaces to reduce the chance that an attacker can supply malicious spec values.

Generated by OpenCVE AI on October 16, 2026 at 07:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
CPEs cpe:/a:redhat:service_mesh:3 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

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 13, 2026, 8:36 PM
Reserved
Sep 17, 2026, 1:53 PM
Status
Awaiting Analysis
Published
Oct 15, 2026, 4:18 PM
Modified
Nov 13, 2026, 9:17 PM
Severity
Important
Public date
Oct 15, 2026, 1:33 PM