Name | CVE-2017-7481 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2535-1 |
Debian Bugs | 862666 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ansible (PTS) | jessie, jessie (lts) | 1.7.2+dfsg-2+deb8u3 | fixed |
stretch (security), stretch (lts), stretch | 2.2.1.0-2+deb9u3 | fixed | |
buster (security), buster, buster (lts) | 2.7.7+dfsg-1+deb10u2 | fixed | |
bullseye | 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1 | fixed | |
bookworm | 7.7.0+dfsg-3+deb12u1 | fixed | |
sid, trixie | 10.5.0+dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ansible | source | jessie | (not affected) | |||
ansible | source | stretch | 2.2.1.0-2+deb9u2 | DLA-2535-1 | ||
ansible | source | (unstable) | 2.3.1.0+dfsg-1 | 862666 |
[jessie] - ansible <not-affected> (vulnerable code introduced in version 2.x)
https://bugzilla.redhat.com/show_bug.cgi?id=1450018
Fixed by: https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2