cve.bz

CVE-2017-7481 Improper Input Validation

9.8 criticalEPSS 4.7%Fix available

Critical (9.8). EPSS 4.7% estimated probability of exploitation activity in the next 30 days. Fixed in ansible 2.1.6.0, 2.2.3.0, 2.3.1.0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.7% (unchanged from 4.7% a week ago; 4.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-7481 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-7481?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-7481?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-7481 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:openshift_container_platform3.3
redhat:openshift_container_platform3.4
redhat:openshift_container_platform3.5
redhat:openstack10
redhat:openstack11
redhat:storage_console2.0
redhat:virtualization4.1
redhat:virtualization_manager4.1
redhat:gluster_storage3.2
redhat:ansible_enginebefore 2.3.1.0
redhat:ansible_enginefrom 2.3.2.0 before 2.4.0.0
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.04
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w578-j992-554xPyPIansible>=2.3.0.0 <2.3.1.02.3.1.0
GHSA-w578-j992-554xPyPIansible<2.1.6.02.1.6.0
GHSA-w578-j992-554xPyPIansible>=2.2.0.0 <2.2.3.02.2.3.0
PYSEC-2018-41PyPIansible<2.3.1.0
>=2.3.2.0 <2.4.0.0
2.3.1.0, 2.4.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ansible2.2.1.0-2+deb9u2DLA-2535-1
Debian12, 13, 14ansible2.3.1.0+dfsg-1DEBIAN-CVE-2017-7481
Ubuntu16.04:LTSansible2.0.0.2-2ubuntu1.3UBUNTU-CVE-2017-7481 USN-4072-1
Ubuntu18.04:LTSansible2.5.1+dfsg-1ubuntu0.1USN-4072-1
Red Hatopenshift:3.2::el7openshift-ansible, atomic-openshift-utils, openshift-ansible-docs and 4 more0:3.2.56-1.git.0.b844ab7.el7RHSA-2017:1244
Red Hatopenshift:3.2::el7, openshift:3.3::el7, openshift:3.4::el7 and 1 moreansible0:2.2.3.0-1.el7RHSA-2017:1244
Red Hatopenshift:3.3::el7openshift-ansible, atomic-openshift-utils, openshift-ansible-docs and 5 more0:3.3.82-1.git.0.af0c922.el7RHSA-2017:1244
Red Hatopenshift:3.4::el7openshift-ansible, atomic-openshift-utils, openshift-ansible-docs and 5 more0:3.4.89-1.git.0.ac29ce8.el7RHSA-2017:1244
Red Hatopenshift:3.5::el7openshift-ansible, atomic-openshift-utils, openshift-ansible-docs and 5 more0:3.5.71-1.git.0.128c2db.el7RHSA-2017:1244
Red Hatopenstack:10::el7ansible0:2.2.3.0-1.el7RHSA-2017:1599
Red Hatopenstack:11::el7ansible0:2.2.3.0-1.el7RHSA-2017:1476
Red Hatrhev_manager:4ansible, ansible-doc0:2.3.1.0-3.el7RHSA-2017:2524
Red Hatrhscon:2::el7ansible0:2.2.3.0-1.el7RHSA-2017:1499
Red Hatstorage:3.2:server:el7ansible0:2.2.3.0-1.el7RHSA-2017:1334
SUSEOpenStack Cloud 7ansible2.2.3.0-5.1SUSE-SU-2017:3029-1
SUSEOpenStack Cloud 7monasca-installer20170912_10.45-5.1SUSE-SU-2017:3029-1
SUSEPackage Hub 12ansible2.4.1.0-6.1openSUSE-SU-2017:2976-1 openSUSE-SU-2017:2978-1
SUSEPackage Hub 15ansible2.7.6-bp150.3.3.1openSUSE-SU-2019:0238-1
openSUSETumbleweedansible-1010.6.0-1.1openSUSE-SU-2024:14536-1
openSUSETumbleweedansible-1111.11.0-1.1openSUSE-SU-2025:15605-1
openSUSETumbleweedansible-1212.2.0-1.1openSUSE-SU-2025:15753-1
openSUSETumbleweedansible-1313.7.0-1.1openSUSE-SU-2026:10944-1
openSUSETumbleweedansible-1414.6.0-1.1openSUSE-SU-2026:12447-1
openSUSETumbleweedansible-99.8.0-1.1openSUSE-SU-2024:14244-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Gluster Storage 3.2 for RHEL 7ansible-0:2.2.3.0-1.el7Fixed 2017-05-25RHSA-2017:1334
Red Hat OpenShift Container Platform 3.2ansible-0:2.2.3.0-1.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.2openshift-ansible-0:3.2.56-1.git.0.b844ab7.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.3ansible-0:2.2.3.0-1.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.3openshift-ansible-0:3.3.82-1.git.0.af0c922.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.4ansible-0:2.2.3.0-1.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.4openshift-ansible-0:3.4.89-1.git.0.ac29ce8.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.5ansible-0:2.2.3.0-1.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenShift Container Platform 3.5openshift-ansible-0:3.5.71-1.git.0.128c2db.el7Fixed 2017-05-17RHSA-2017:1244
Red Hat OpenStack Platform 10.0 (Newton)ansible-0:2.2.3.0-1.el7Fixed 2017-06-28RHSA-2017:1599
Red Hat OpenStack Platform 11.0 (Ocata)ansible-0:2.2.3.0-1.el7Fixed 2017-06-15RHSA-2017:1476
Red Hat Storage Console 2 for Red Hat Enteprise Linux 7ansible-0:2.2.3.0-1.el7Fixed 2017-06-19RHSA-2017:1499
Red Hat Virtualization Engine 4.1ansible-0:2.3.1.0-3.el7Fixed 2017-08-22RHSA-2017:2524
Red Hat OpenStack Platform 12 (Pike)ansibleNot affected
Red Hat Quickstart Cloud Installer 1ansibleAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-7481.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON