CVE-2023-5764
HIGH 7.8CVSS 3.1Ansible template injection vulnerability
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.
- Published
- 12 Dec 2023
- Last modified
- 5 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-1336
- Also known as
- GHSA-7j69-qfc3-2fq9PYSEC-2026-1122
- Sources
- NVDJSONOSV GHSA-7j69-qfc3-2fq9JSONOSV PYSEC-2026-1122JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
< 2.14.12 | 2.14.12 |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
>= 2.15.0, < 2.15.7 | 2.15.7 |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:2.16.0:-:*:*:*:*:*:* |
= 2.16.0 | |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:2.16.0:beta1:*:*:*:*:*:* |
= 2.16.0 | |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:2.16.0:beta2:*:*:*:*:*:* |
= 2.16.0 | |
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:2.16.0:rc1:*:*:*:*:*:* |
= 2.16.0 | |
| NVD | fedoraproject | extra_packages_for_enterprise_linuxcpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* |
= 39 | |
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:2.4:*:*:*:*:*:*:* |
= 2.4 | |
| NVD | redhat | ansible_developercpe:2.3:a:redhat:ansible_developer:1.1:*:*:*:*:*:*:* |
= 1.1 | |
| NVD | redhat | ansible_insidecpe:2.3:a:redhat:ansible_inside:1.2:*:*:*:*:*:*:* |
= 1.2 | |
| OSV | PyPI | ansible-core | >= 2.16.0, < 2.16.1 | 2.16.1 |
| OSV | PyPI | ansible-core | >= 2.15.0, < 2.15.8 | 2.15.8 |
| OSV | PyPI | ansible-core | < 2.14.12 | 2.14.12 |
| OSV | PyPI | ansible-core | < 2.14.12; >= 2.15.0, < 2.15.8; >= 2.16.0, < 2.16.1 | 2.14.12, 2.15.8, 2.16.1 |
References
- https://access.redhat.com/errata/RHSA-2023:7773 · Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2023-5764 · 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/ · WEB
- 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://pypi.org/project/ansible-core · PACKAGE
- https://github.com/advisories/GHSA-7j69-qfc3-2fq9 · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 12 Dec 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Dec 2023)