# CVE-2023-5764: Ansible: template injection

- Severity: High 7.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 48% of CVEs (2026-12-01)
- Published: 2023-12-12T22:01:33.467Z
- Modified: 2026-11-05T12:17:34.167Z
- Also known as: GHSA-7j69-qfc3-2fq9, PYSEC-2026-1122
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- ansible-core: no versions given (not affected: from 1:2.15.8-1.el8ap before *; from 1:2.15.8-1.el9ap before *)
- ansible: no versions given
- ansible-core (PyPI): from 2.16.0 before 2.16.1; from 2.15.0 before 2.15.8; before 2.14.12
- redhat ansible: before 2.14.12; from 2.15.0 before 2.15.7; 2.16.0
- fedoraproject extra_packages_for_enterprise_linux: 8.0
- fedoraproject fedora: 38; 39
- redhat ansible_automation_platform: 2.4
- redhat ansible_developer: 1.1
- redhat ansible_inside: 1.2

## Every score

- redhat: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:7773> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-5764> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2247629> (issue-tracking, patch, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU/>
- <https://security.netapp.com/advisory/ntap-20241025-0001/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5764> (advisory)
- <https://github.com/ansible/ansible/commit/270b39f6ff02511a2199505161218cbd1a5ae34f> (web)
- <https://github.com/ansible/ansible/commit/7239d2d371bc6e274cbb7314e01431adce6ae25a> (web)
- <https://github.com/ansible/ansible/commit/fea130480d261ea5bf6fcd5cf19a348f1686ceb1> (web)
- <https://github.com/ansible/ansible> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU> (web)
- <https://pypi.org/project/ansible-core> (package)
- <https://github.com/advisories/GHSA-7j69-qfc3-2fq9> (advisory)

## Sources

- CVE List: [CVE-2023-5764](https://www.cve.org/CVERecord?id=CVE-2023-5764), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-7j69-qfc3-2fq9](https://github.com/advisories/GHSA-7j69-qfc3-2fq9), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-5764](https://nvd.nist.gov/vuln/detail/CVE-2023-5764), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2026-1122](https://osv.dev/vulnerability/PYSEC-2026-1122), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-5764 · Whole record: https://cve.day/CVE-2023-5764.json · Rebuilt by cve.day 2026-11-25T22:58:31.267Z
