Red Hat · Ansible · CVE-2017-7481
**Name of the Vulnerable Software and Affected Versions**
Ansible versions 2.3.1.0 and 2.4.0.0 and earlier
**Description**
The issue is related to insufficient input validation in Ansible. An attacker could exploit this by controlling the results of `lookup()` calls, injecting Unicode strings to be parsed by the `jinja2` templating system, resulting in code execution. By default, the `jinja2` templating language is now marked as 'unsafe' and is not evaluated.
**Recommendations**
For Ansible versions prior to 2.3.1.0 and 2.4.0.0, update to version 2.3.1.0 or 2.4.0.0 or later to resolve the issue.
As a temporary workaround, consider disabling the `jinja2` templating language until a patch is available.
Restrict access to the `lookup()` function to minimize the risk of exploitation.