CVE-2023-5764
Ansible: template injection
Reported by redhat · Published December 12, 2023
ansible-core is fixed in 2.16.1, 2.15.8 and 2.14.12 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible-core | PyPI | 2.16.1, 2.15.8, 2.14.12 |
| ansible | PyPI | 2.15.7, 2.14.12 |
| ansible | redhat | 2.15.7, 2.14.12 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | 1:2.15.8-1.el8ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | 1:2.15.8-1.el8ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | 1:2.15.8-1.el8ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | 1:2.15.8-1.el9ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | 1:2.15.8-1.el9ap |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | 1:2.15.8-1.el9ap |
| Red Hat | Red Hat Ansible Automation Platform 1.2 | |
| Red Hat | Red Hat Ansible Automation Platform 1.2 | |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | 1:2.15.8-1.el8ap |
| PyPI | ansible-core | 2.16.0, 2.15.0, 0 |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | 1:2.15.8-1.el9ap |
| PyPI | ansible | 0, 2.15.0, 2.16.0 |
| amazon:2023 | ansible-test | 0 |
| amazon:2023 | ansible-core | 0 |
Timeline
- Nov 2, 2023 CVE Published
- Dec 13, 2023 EPSS Score (30 in total, the first dated here)
- Sep 16, 2024 CVE Updated
- Oct 5, 2024 Coalition ESS Score (16 in total, the first dated here)
- Mar 9, 2026 Security Advisory (5 in total, the first dated here)
- Nov 6, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-5764
vulnetix vdb fixes CVE-2023-5764
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-5764/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2023:7773 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2247629 issue-trackingx_refsource_REDHAT
- https://github.com/advisories/GHSA-7j69-qfc3-2fq9 advisory
- https://github.com/ansible/ansible/commit/270b39f6ff02511a2199505161218cbd1a5ae34f patch
- https://github.com/ansible/ansible/commit/7239d2d371bc6e274cbb7314e01431adce6ae25a patch
- https://github.com/ansible/ansible/commit/fea130480d261ea5bf6fcd5cf19a348f1686ceb1 patch
- https://github.com/ansible/ansible url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU url
- https://nvd.nist.gov/vuln/detail/CVE-2023-5764 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU/ url
- https://security.netapp.com/advisory/ntap-20241025-0001/ url