CVE-2026-84714 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-cor...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
11 packages: 9 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-26/controller-rhel9:1789673739(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/controller-rhel9:1789580684(Red Hat ansible_automation_platform 2.7 el9) | All versions | No fix listed | No fix yet |
| redhat ansible automation platform | < 0:4.6.33-1.el8ap; < 0:4.6.33-1.el9ap; < 0:4.7.17-1.el9ap; < 1789580684 +1 more | 0:4.6.33-1.el8ap, 0:4.6.33-1.el9ap, 0:4.7.17-1.el9ap, 1789580684, 1789673739 | Fixed |
| redhat ansible automation platform developer | < 0:4.6.33-1.el8ap; < 0:4.6.33-1.el9ap; < 0:4.7.17-1.el9ap | 0:4.6.33-1.el8ap, 0:4.6.33-1.el9ap, 0:4.7.17-1.el9ap | Fixed |
| redhat ansible automation platform inside | < 0:4.6.33-1.el8ap; < 0:4.6.33-1.el9ap; < 0:4.7.17-1.el9ap | 0:4.6.33-1.el8ap, 0:4.6.33-1.el9ap, 0:4.7.17-1.el9ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform 2.5 el8) | < 4.6.33-1.el8ap | 4.6.33-1.el8ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform 2.5 el9) | < 4.6.33-1.el9ap | 4.6.33-1.el9ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform 2.6 el9) | < 4.7.17-1.el9ap | 4.7.17-1.el9ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform_developer 2.5 el8) | < 4.6.33-1.el8ap | 4.6.33-1.el8ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform_developer 2.5 el9) | < 4.6.33-1.el9ap | 4.6.33-1.el9ap | Fixed |
| redhat/automation-controller(Red Hat ansible_automation_platform_developer 2.6 el9) | < 4.7.17-1.el9ap | 4.7.17-1.el9ap | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat ansible automation platform | < 0:4.6.33-1.el8ap | 0:4.6.33-1.el8ap |
| redhat ansible automation platform developer | < 0:4.6.33-1.el8ap | 0:4.6.33-1.el8ap |
| redhat ansible automation platform inside | < 0:4.6.33-1.el8ap | 0:4.6.33-1.el8ap |
| redhat ansible automation platform | < 0:4.6.33-1.el9ap | 0:4.6.33-1.el9ap |
| redhat ansible automation platform developer | < 0:4.6.33-1.el9ap | 0:4.6.33-1.el9ap |
| redhat ansible automation platform inside | < 0:4.6.33-1.el9ap | 0:4.6.33-1.el9ap |
| redhat ansible automation platform | < 0:4.7.17-1.el9ap | 0:4.7.17-1.el9ap |
| redhat ansible automation platform developer | < 0:4.7.17-1.el9ap | 0:4.7.17-1.el9ap |
| redhat ansible automation platform inside | < 0:4.7.17-1.el9ap | 0:4.7.17-1.el9ap |
| redhat ansible automation platform | < 1789673739 | 1789673739 |
| redhat ansible automation platform | < 1789580684 | 1789580684 |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2.5::el8) | < 4.6.33-1.el8ap | 4.6.33-1.el8ap |
| redhat/automation-controller(Red Hat:ansible_automation_platform_developer:2.5::el8) | < 4.6.33-1.el8ap | 4.6.33-1.el8ap |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2.5::el9) | < 4.6.33-1.el9ap | 4.6.33-1.el9ap |
| redhat/automation-controller(Red Hat:ansible_automation_platform_developer:2.5::el9) | < 4.6.33-1.el9ap | 4.6.33-1.el9ap |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2.6::el9) | < 4.7.17-1.el9ap | 4.7.17-1.el9ap |
| redhat/automation-controller(Red Hat:ansible_automation_platform_developer:2.6::el9) | < 4.7.17-1.el9ap | 4.7.17-1.el9ap |
| redhat/ansible-automation-platform-26/controller-rhel9:1789673739(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/controller-rhel9:1789580684(Red Hat:ansible_automation_platform:2.7::el9) | All versions | No fix listed |
References
- RHSA-2026:71113 patch vendor-advisory
- RHSA-2026:71114 patch vendor-advisory
- RHSA-2026:71177 patch vendor-advisory
- RHSA-2026:71179 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2527198 issue-tracking
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-85605 third-party-advisory