MEDIUM6.6
PYSEC-2026-1122
Ansible template injection vulnerability
Quick fix
PYSEC-2026-1122 — ansible-core: upgrade to the fixed version with the command below.
pip install --upgrade 'ansible-core>=2.14.12'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- 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://access.redhat.com/errata/RHSA-2023:7773[WEB]
- https://access.redhat.com/security/cve/CVE-2023-5764[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2247629[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]