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.
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Redhat_linux | — | Upgrade python3.12-sqlparseUpgrade receptorctlUpgrade automation-gatewayUpgrade python3.12-django-ansible-base+jwt_consumerUpgrade python3.12-galaxy-ngUpgrade automation-gateway-proxy-serverUpgrade automation-platform-uiUpgrade python3.12-django-ansible-base+rest_filtersUpgrade automation-controller-cliUpgrade python3.12-django-ansible-base+resource_registryUpgrade aap-metrics-utilityUpgrade automation-controllerUpgrade python3.12-django-ansible-base+activitystreamUpgrade automation-controller-serverUpgrade automation-gateway-proxy-debugsourceUpgrade automation-gateway-serverUpgrade automation-eda-controller-event-stream-servicesUpgrade receptor-debugsourceUpgrade automation-controller-venv-towerUpgrade python3.12-django-ansible-base+authenticationUpgrade automation-gateway-proxy-server-debuginfoUpgrade python3.12-django-ansible-base+api_documentationUpgrade python3.12-django-ansible-base+redis_clientUpgrade automation-hubUpgrade python3.12-django-ansible-base+feature_flagsUpgrade automation-controller-uiUpgrade automation-eda-controller-baseUpgrade python3.12-django-ansible-base+oauth2_providerUpgrade python3-sqlparseUpgrade automation-gateway-proxyUpgrade automation-eda-controllerUpgrade automation-gateway-configUpgrade python3.12-django-ansible-base+channel_authUpgrade receptorUpgrade python3.12-gitpythonUpgrade python3.12-django-ansible-base+rbacUpgrade python3.12-django-ansible-baseUpgrade receptor-debuginfoUpgrade automation-eda-controller-worker-servicesUpgrade automation-eda-controller-base-services | Sep 25, 2026 | Sep 23, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub