CVE-2017-7481

unknown
Published 2018-09-06 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
VIR risk

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-7481.html

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-7481

OS impact

OSVersionStatusFixed in
debian debiansidfixed2.3.1.0+dfsg-1
debian debiantrixiefixed2.3.1.0+dfsg-1
debian debianforkyfixed2.3.1.0+dfsg-1
debian debianbullseyefixed2.3.1.0+dfsg-1
debian debianbookwormfixed2.3.1.0+dfsg-1
suse slesaffected

Package impact

EcosystemPackageVulnerableFixed
python PyPIansible>=2.3.0.0,<2.3.1.02.3.1.0
python PyPIansible<2.1.6.02.1.6.0
python PyPIansible>=2.2.0.0,<2.2.3.02.2.3.0
python PyPIansible<ed56f51f185a1ffd7ea57130d260098686fcc7c2||>=2.3.2.0,<2.4.0.0ed56f51f185a1ffd7ea57130d260098686fcc7c2

References

Verify integrity in audit chain (admin only). AS-IS.