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.
Published: 2026-10-15
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution via Jinja2 template injection in Ansible Operator Plugins
Action: Apply Workaround
AI Analysis

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.

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

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 yet.

History

Fri, 30 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5

Thu, 29 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:service_mesh:3 cpe:/a:redhat:service_mesh:3.4::el9
References

Wed, 21 Oct 2026 19:15:00 +0000

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

Fri, 16 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 16 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 15 Oct 2026 16:00:00 +0000

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'}


Subscriptions

Redhat Acm Ansible Automation Platform Container Native Virtualization Migration Toolkit Applications Migration Toolkit Virtualization Openshift Openstack Rhmt Service Mesh Stf
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-30T03:10:33.755Z

Reserved: 2026-09-17T13:53:53.998Z

Link: CVE-2026-92982

cve-icon Vulnrichment

Updated: 2026-10-16T14:19:14.386Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-15T16:18:23.657

Modified: 2026-10-30T04:18:29.683

Link: CVE-2026-92982

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-15T13:33:42Z

Links: CVE-2026-92982 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T07:15:17Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine