CVE-2017-7481
published medium CVSS 3.0 · 5.3ansible: Security issue with lookup return not tainting the jinja2 environment
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| [UNKNOWN] | — | ansibleansible 2.3.1.0 · ansible 2.4.0.0 | Affected | Not stated | redhat |
| Debian | stretch | ansible | Advisory build | 2.2.1.0-2+deb9u2 | DLA-2535-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| Ubuntu | xenial | ansible | Advisory build | 2.0.0.2-2ubuntu1.3 | USN-4072-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibleppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansibles390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansiblex86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10aarch64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
Show 33 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10ppc64le | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10s390x | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-10x86_64 | Advisory build | 10.6.0-1.1 | OPENSUSE-SU-2024:14536-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11aarch64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11ppc64le | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11s390x | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-11x86_64 | Advisory build | 11.11.0-1.1 | OPENSUSE-SU-2025:15605-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12aarch64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12ppc64le | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12s390x | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-12x86_64 | Advisory build | 12.2.0-1.1 | OPENSUSE-SU-2025:15753-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13aarch64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13ppc64le | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13s390x | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-13x86_64 | Advisory build | 13.7.0-1.1 | OPENSUSE-SU-2026:10944-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14aarch64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14ppc64le | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14s390x | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-14x86_64 | Advisory build | 14.6.0-1.1 | OPENSUSE-SU-2026:12447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9aarch64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9ppc64le | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9s390x | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-9x86_64 | Advisory build | 9.8.0-1.1 | OPENSUSE-SU-2024:14244-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docs390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-docx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testaarch64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testppc64le | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-tests390x | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-testx86_64 | Advisory build | 2.9.24-1.2 | OPENSUSE-SU-2024:10615-1 |
| Ubuntu | xenial | ansible-fireball | Advisory build | 2.0.0.2-2ubuntu1.3 | USN-4072-1 |
| Ubuntu | xenial | ansible-node-fireball | Advisory build | 2.0.0.2-2ubuntu1.3 | USN-4072-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| [UNKNOWN] | ansible | ansible 2.3.1.0 (affected)ansible 2.4.0.0 (affected) | redhat · cna |
Weaknesses
1- CWE-20
References
11- 98492 http://www.securityfocus.com/bid/98492
- RHSA-2017:1244 https://access.redhat.com/errata/RHSA-2017:1244
- RHSA-2017:1334 https://access.redhat.com/errata/RHSA-2017:1334
- RHSA-2017:1476 https://access.redhat.com/errata/RHSA-2017:1476
- RHSA-2017:1499 https://access.redhat.com/errata/RHSA-2017:1499
- RHSA-2017:1599 https://access.redhat.com/errata/RHSA-2017:1599
- RHSA-2017:2524 https://access.redhat.com/errata/RHSA-2017:2524
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481
- https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2
- [debian-lts-announce] 20210127 [SECURITY] [DLA 2535-1] ansible security update https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html
- USN-4072-1 https://usn.ubuntu.com/4072-1/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b62328526202093de88144e1ebcd80c38557478d2b07e5a2314c49b9868ab005
- Ingested
- 23 Sep 2026, 07:42:53 UTC
- Source record
- Official CVE record