
CVE catalog
CVE-2017-7481
ansible: CVE-2017-7481
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.78% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ansible | sid | 14.4.0+dfsg-1 | fixed |
| Debian | ansible | forky | 14.0.0+dfsg-1 | fixed |
| Debian | ansible | trixie | 12.0.0+dfsg-0+deb13u1 | fixed |
| Debian | ansible | bookworm | 7.7.0+dfsg-3+deb12u1 | fixed |
| Ubuntu | ansible | 16.04 | 1.9.2+dfsg-2 | vulnerable |
| Ubuntu | ansible | 16.04 | 1.9.4-1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.2 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.3 | fixed |
| Ubuntu | ansible | 18.04 | 2.3.1.0+dfsg-2 | vulnerable |
| Ubuntu | ansible | 18.04 | 2.5.0+dfsg-1 | vulnerable |
| Ubuntu | ansible | 18.04 | 2.5.1+dfsg-1 | vulnerable |
| Ubuntu | ansible | 18.04 | 2.5.1+dfsg-1ubuntu0.1 | fixed |
| Ubuntu | ansible | 16.04 | 1.9.2+dfsg-2 | vulnerable |
| Ubuntu | ansible | 16.04 | 1.9.4-1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.1 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.2 | vulnerable |
| Ubuntu | ansible | 16.04 | 2.0.0.2-2ubuntu1.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ansible | source | sid | 2.3.1.0+dfsg-1 | not yet assigned | Not reported | [862666] |
| Debian | ansible | source | forky | 2.3.1.0+dfsg-1 | not yet assigned | Not reported | [862666] |
| Debian | ansible | source | trixie | 2.3.1.0+dfsg-1 | not yet assigned | Not reported | [862666] |
| Debian | ansible | source | bookworm | 2.3.1.0+dfsg-1 | not yet assigned | Not reported | [862666] |
| Ubuntu | ansible | deb | 16.04 | 2.0.0.2-2ubuntu1.3 | Not reported | USN-4072-1 | Not reported |
| Ubuntu | ansible | deb | 18.04 | 2.5.1+dfsg-1ubuntu0.1 | Not reported | USN-4072-1 | Not reported |
| Ubuntu | ansible | deb | 16.04 | 2.0.0.2-2ubuntu1.3 | Not reported | UBUNTU-CVE-2017-7481 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ansible]Fixed
Details (2)
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
2.3.1.0+dfsg-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
2.3.1.0+dfsg-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
[Debian 13 (Trixie)]
- [ansible]Fixed
Details (2)
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
2.3.1.0+dfsg-1dsa · ansible · debian · 13
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
2.3.1.0+dfsg-1dsa · ansible · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2017_3029-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2017-7481]
- [https://osv.dev/vulnerability/DLA-2535-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2017-7481]
- [https://osv.dev/vulnerability/USN-4072-1]
- [https://security-tracker.debian.org/tracker/CVE-2017-7481]
- [https://security.access.redhat.com/data/csaf/v2/vex/2017/cve-2017-7481.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2017/wid-sec-w-2026-1808.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]