PT-2017-3949 · Red Hat+3 · Ansible+3

Jimi-C

·

Published

2017-05-08

·

Updated

2026-06-03

·

CVE-2017-7481

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Ansible versions 2.3.1.0 and 2.4.0.0 and earlier
Description The issue is related to insufficient input validation in Ansible. An attacker could exploit this by controlling the results of lookup() calls, injecting 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.
Recommendations For Ansible versions prior to 2.3.1.0 and 2.4.0.0, update to version 2.3.1.0 or 2.4.0.0 or later to resolve the issue. As a temporary workaround, consider disabling the jinja2 templating language until a patch is available. Restrict access to the lookup() function to minimize the risk of exploitation.

Fix

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2017-2423
BDU:2020-02914
CVE-2017-7481
DLA-2535-1
GHSA-W578-J992-554X
MGASA-2017-0164
OPENSUSE-SU-2017:2976-1
OPENSUSE-SU-2017:2978-1
OPENSUSE-SU-2019:0238-1
OPENSUSE-SU-2024:10615-1
OPENSUSE-SU-2024:14244-1
OPENSUSE-SU-2024:14536-1
OPENSUSE-SU-2025:15605-1
OPENSUSE-SU-2025:15753-1
OPENSUSE-SU-2026:10944-1
PYSEC-2018-41
RHSA-2017:1244
RHSA-2017:1334
RHSA-2017:1476
RHSA-2017:1499
RHSA-2017:1599
RHSA-2017:2524
SUSE-SU-2017:3029-1
USN-4072-1

Affected Products

Alt Linux
Ansible
Ubuntu
Jinja2