First published: Thu May 11 2017(Updated: )
Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject 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.
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/ansible | <2.3.1.0 | 2.3.1.0 |
redhat/ansible | <2.4.0.0 | 2.4.0.0 |
pip/ansible | <2.3.1.0 | 2.3.1.0 |
debian/ansible | 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1 2.10.7+merged+base+2.10.17+dfsg-0+deb11u2 7.7.0+dfsg-3+deb12u1 11.1.0+dfsg-1 | |
redhat openshift container platform | =3.3 | |
redhat openshift container platform | =3.4 | |
redhat openshift container platform | =3.5 | |
redhat openstack | =10 | |
redhat openstack | =11 | |
Red Hat Storage Console | =2.0 | |
Red Hat Enterprise Virtualization | =4.1 | |
Red Hat Enterprise Virtualization Manager | =4.1 | |
All of | ||
GlusterFS | =3.2 | |
Red Hat Enterprise Linux | =7.0 | |
Red Hat Ansible Engine | <2.3.1.0 | |
Red Hat Ansible Engine | >=2.3.2.0<2.4.0.0 | |
Ubuntu | =16.04 | |
Ubuntu | =18.04 | |
Ubuntu | =19.04 | |
Debian | =9.0 | |
GlusterFS | =3.2 | |
Red Hat Enterprise Linux | =7.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-7481 is a vulnerability in Ansible before versions 2.3.1.0 and 2.4.0.0 that allows an attacker to execute code by injecting Unicode strings in the jinja2 templating system through certain lookup() calls.
CVE-2017-7481 has a severity rating of 9.8 (critical).
Ansible versions before 2.3.1.0 and 2.4.0.0 are affected by CVE-2017-7481.
To fix CVE-2017-7481, upgrade to Ansible version 2.3.1.0 or 2.4.0.0.
You can find more information about CVE-2017-7481 at the following references: [NIST NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-7481), [GitHub Advisory](https://github.com/advisories/GHSA-w578-j992-554x), [Ansible Commit](https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3).