Skip to main content
← All vulnerabilities
CVE-2017-7481GHSA-W578-J992-554XPYSEC-2018-41

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.1.0, 2.1.6.0, 2.2.3.0, 2.4.0.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • [UNKNOWN] ansible

    ansible 2.3.1.0, ansible 2.4.0.0

  • ansiblePyPI

    From 2.3.0.0 · fixed in 2.3.1.0

  • ansiblePyPI

    fixed in 2.1.6.0

  • ansiblePyPI

    From 2.2.0.0 · fixed in 2.2.3.0

  • ansiblePyPI

    fixed in 2.3.1.0; From 2.3.2.0 · fixed in 2.4.0.0

References 11

access.redhat.com

bugzilla.redhat.com

securityfocus.com

GitHub · ansible/ansible

usn.ubuntu.com

lists.debian.org