Skip to content
OpenAdvisories
High · 7.1 CVE-2026-84714 EUVD-2026-85605GHSA-8ghh-482v-94qp

Automation-controller: automation-controller: incomplete sanitize_jinja() regex allows jinja template injection into ad-hoc module_args, machine-credential fields, and host names, reaching ansible-core templating in the execution environment

Published Sep 23, 2026 · Updated Nov 4, 2026 · Assigned by redhat

Description

A flaw was found in the automation-controller input-validation
guard sanitize_jinja(). The function uses two regular
expressions to reject user-supplied Jinja, but the patterns
stop at the first interior '}' or '%' character, so a Jinja
expression containing an inner brace (for example an empty
dict) is accepted while remaining valid Jinja. Because
sanitize_jinja() is the sole guard on several launch-time
fields — ad-hoc command module_args, Machine-credential
username / become_method / become_user, and inventory host
names — a low-privileged user can inject Jinja that ansible-core
evaluates in the execution environment. This enables execution
of arbitrary commands in the execution environment (bypassing an
administrator's AD_HOC_COMMANDS module allowlist) and disclosure
of secrets belonging to credentials the attacker cannot read
(by templating a co-attached credential's injected environment
variables), across the credential access-control boundary.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 — —
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 — —
Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 — —
Red Hat Red Hat Ansible Automation Platform 2.6 — —
Red Hat Red Hat Ansible Automation Platform 2.7 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Inside 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 automation-controller +1 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 python3.12-sqlparse 0.6.0-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform Developer 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-controller +3 4.7.17-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.6.33-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-gateway-proxy-server 2.5.10-8.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.5.20260923-1.el8ap RHSA-2026:71114
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.14-1.el9ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python-sqlparse +1 0.6.0-1.el10ap RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python3.12-gitpython 3.1.60-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 python3.12-sqlparse 0.6.0-1.el8ap RHSA-2026:71114, RHSA-2026:71113
Red Hat Ansible Automation Platform 2 receptor 1.6.8-1.el8ap RHSA-2026:71114, RHSA-2026:71113

Advisories 3

References