CVE-2026-92982Ansible-operator-plugins: ansible operator plugins: arbitrary code execution via jinja2…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Ansible Automation Platform 2.6
- Red Hat Ansible Automation Platform 2.7
- Red Hat OpenShift Service Mesh 3.4
- Red Hat Migration Toolkit for Applications 8
- Red Hat Migration Toolkit for Containers
- Red Hat Migration Toolkit for Virtualization
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Ansible Automation Platform 2
- Red Hat OpenShift Container Platform 4
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.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:68695 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:87120 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:87124 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:68695
- https://access.redhat.com/errata/RHSA-2026:87120
- https://access.redhat.com/errata/RHSA-2026:87124
- https://access.redhat.com/security/cve/CVE-2026-92982
- https://bugzilla.redhat.com/show_bug.cgi?id=2522227
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.