CVE-2017-7481: Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe.

CVE-2017-7481 affects 5 listed versions of Red Hat ansible-core in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
5%EPSS (next 30 days)
19 July 2018published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Red Hat ansible-core

5 of 250 listed versions are affected. Fixed in 2.4.0.0, 2.3.1.0. The newest release, 2.22.1, is not affected.

2.3.3 2.3 2.2.1.0 2.2.1 2.2.0

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Red Hat on 19 July 2018. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2017-7481 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.