CVE-2017-7481

Summary

CVECVE-2017-7481
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-07-19 13:29:00 UTC
Updated2021-08-04 17:15:00 UTC
DescriptionAnsible 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.

Risk And Classification

Problem Types: CWE-20

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 19.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 19.04 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Redhat Ansible Engine All All All All
Application Redhat Ansible Engine All All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Operating System Redhat Enterprise Linux 7.0 All All All
Application Redhat Gluster Storage 3.2 All All All
Application Redhat Gluster Storage 3.2 All All All
Application Redhat Openshift Container Platform 3.3 All All All
Application Redhat Openshift Container Platform 3.4 All All All
Application Redhat Openshift Container Platform 3.5 All All All
Application Redhat Openshift Container Platform 3.3 All All All
Application Redhat Openshift Container Platform 3.4 All All All
Application Redhat Openshift Container Platform 3.5 All All All
Application Redhat Openstack 10 All All All
Application Redhat Openstack 10.0 All All All
Application Redhat Openstack 11 All All All
Application Redhat Openstack 11.0 All All All
Application Redhat Openstack 10.0 All All All
Application Redhat Openstack 11.0 All All All
Application Redhat Storage Console 2.0 All All All
Application Redhat Storage Console 2.0 All All All
Application Redhat Virtualization 4.1 All All All
Application Redhat Virtualization 4.1 All All All
Application Redhat Virtualization Manager 4.1 All All All
Application Redhat Virtualization Manager 4.1 All All All

References

ReferenceSourceLinkTags
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
[SECURITY] [DLA 2535-1] ansible security update MLIST lists.debian.org Mailing List, Third Party Advisory
USN-4072-1: Ansible vulnerabilities | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
1450018 – (CVE-2017-7481) CVE-2017-7481 ansible: Security issue with lookup return not tainting the jinja2 environment CONFIRM bugzilla.redhat.com Issue Tracking, Patch, Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
Red Hat Customer Portal REDHAT access.redhat.com Vendor Advisory
Ansible CVE-2017-7481 Security Bypass Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Fixing security issue with lookup returns not tainting the jinja2 env… · ansible/ansible@ed56f51 · GitHub CONFIRM github.com Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 980827 Python (pip) Security Update for ansible (GHSA-w578-j992-554x)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report