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 secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Redhat Openshift Container Platform | =3.3 | |
Redhat Openshift Container Platform | =3.4 | |
Redhat Openshift Container Platform | =3.5 | |
Redhat Openstack | =10 | |
Redhat Openstack | =11 | |
Redhat Storage Console | =2.0 | |
Redhat Virtualization | =4.1 | |
Redhat Virtualization Manager | =4.1 | |
Redhat Gluster Storage | =3.2 | |
Redhat Enterprise Linux | =7.0 | |
Redhat Ansible Engine | <2.3.1.0 | |
Redhat Ansible Engine | >=2.3.2.0<2.4.0.0 | |
Canonical Ubuntu Linux | =16.04 | |
Canonical Ubuntu Linux | =18.04 | |
Canonical Ubuntu Linux | =19.04 | |
Debian Debian Linux | =9.0 | |
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 |
All of | ||
Redhat Gluster Storage | =3.2 | |
Redhat Enterprise Linux | =7.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 |
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).