Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ansible
  4. ›
  5. CVE-2017-7481

CVE-2017-7481: Improper Input Validation

July 19, 2018 (updated July 25, 2019)

Ansible 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.

References

  • www.securityfocus.com/bid/98492
  • bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481
  • nvd.nist.gov/vuln/detail/CVE-2017-7481

Code Behaviors & Features

Detect and mitigate CVE-2017-7481 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.1.0, version 2.4.0.0

Fixed versions

  • 2.3.1.0
  • 2.4.1.0

Solution

Upgrade to versions 2.3.1.0, 2.4.1.0 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/ansible/CVE-2017-7481.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.