# CVE-2023-5764: PYSEC-2026-1122 - Ansible template injection vulnerability

Source: https://junglewise.ai/threats/cve-2023-5764-ansible-template-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2023-5764 · Severity: low · CVSS 3.1 · Published 2026-07-07

Ansible template injection vulnerability

Technologies: [ansible-core (PyPI)](https://junglewise.ai/threats/technologies/pypi-ansible-core). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-5764 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-5764 being exploited in the wild.

**How severe is CVE-2023-5764?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** ansible-core (PyPI) ECOSYSTEM:introduced=0,fixed=2.14.12,introduced=2.15.0,fixed=2.15.8,introduced=2.16.0,fixed=2.16.1, ECOSYSTEM:introduced=2.16.0,fixed=2.16.1.

**Is there a fix for CVE-2023-5764?** Yes. ansible-core (PyPI): upgrade to 2.16.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-5764?** Check whether you run ansible-core (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ansible-core (PyPI): upgrade to 2.16.1 or later

  ```sh
  pip install "ansible-core>=2.16.1"
  ```


## Affected products

- ansible-core (PyPI) ECOSYSTEM:introduced=0,fixed=2.14.12,introduced=2.15.0,fixed=2.15.8,introduced=2.16.0,fixed=2.16.1, ECOSYSTEM:introduced=2.16.0,fixed=2.16.1

## Identifiers

- CVE-2023-5764
- GHSA-7j69-qfc3-2fq9
- PYSEC-2026-1122

## Related threats

- [PYSEC-2026-1123 - Ansible-Core vulnerable to content protections bypass](https://junglewise.ai/threats/cve-2024-11079-ansible-core-vulnerable-to-content-protections-bypass)
- [PYSEC-2026-1121 - ansible-core Incorrect Authorization vulnerability](https://junglewise.ai/threats/cve-2024-9902-ansible-user-module-incorrect-authorization-in-ssh-key-handling)
- [PYSEC-2026-1124 - Ansible vulnerable to Insertion of Sensitive Information into Log File](https://junglewise.ai/threats/cve-2024-8775-ansible-vulnerable-to-insertion-of-sensitive-information-into-log)
- [PYSEC-2026-1125 - Ansible may expose private key](https://junglewise.ai/threats/cve-2023-4237-ansible-may-expose-private-key)
- [Ansible ansible-core argument injection in ansible-galaxy role install](https://junglewise.ai/threats/cve-2026-11332-ansible-ansible-core-argument-injection-in-ansible-galaxy-role)
