{"id":"CVE-2023-5764","aliases":["CVE-2023-5764","GHSA-7j69-qfc3-2fq9","PYSEC-2026-1122"],"related":[],"kind":"vulnerability","state":"published","title":"Ansible: template injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró una falla de inyección de plantilla en Ansible donde las operaciones de creación de plantillas internas del controlador de un usuario pueden eliminar la designación insegura de los datos de la plantilla. Este problema podría permitir que un atacante utilice un archivo especialmente manipulado para introducir la inyección de código al proporcionar datos de plantillas.","source":"nvd"}],"published":"2023-12-12T22:01:33.467Z","modified":"2026-11-05T12:17:34.167Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.6,"rating":"MEDIUM"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1:2.15.8-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 1.2","package":"ansible","cpe":"cpe:/a:redhat:ansible_automation_platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.16.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.15.0","status":"affected","fixed":"2.15.8"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.14.12"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.14.12"},{"status":"affected","introduced":"2.15.0","fixed":"2.15.7"},{"status":"affected","version":"2.16.0"},{"status":"affected","version":"2.16.0"},{"status":"affected","version":"2.16.0"},{"status":"affected","version":"2.16.0"}],"vendor":"redhat","product":"ansible","cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux","cpe":"cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"38"},{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"2.4"}],"vendor":"redhat","product":"ansible_automation_platform","cpe":"cpe:2.3:a:redhat:ansible_automation_platform:2.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.1"}],"vendor":"redhat","product":"ansible_developer","cpe":"cpe:2.3:a:redhat:ansible_developer:1.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.2"}],"vendor":"redhat","product":"ansible_inside","cpe":"cpe:2.3:a:redhat:ansible_inside:1.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.14.12"},{"type":"ecosystem","introduced":"2.15.0","status":"affected","fixed":"2.15.8"},{"type":"ecosystem","introduced":"2.16.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"pysec"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:7773","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-5764","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2247629","tags":["issue-tracking","patch","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0001/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5764","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/commit/270b39f6ff02511a2199505161218cbd1a5ae34f","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/commit/7239d2d371bc6e274cbb7314e01431adce6ae25a","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/commit/fea130480d261ea5bf6fcd5cf19a348f1686ceb1","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7Q6CHPVCHMZS5M7V22GOKFSXZAQ24EU","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansible-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7j69-qfc3-2fq9","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-19T03:55:28.216Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-5764","url":"https://www.cve.org/CVERecord?id=CVE-2023-5764","licence":"CVE Terms of Use","modified":"2026-11-05T11:36:18.849Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7j69-qfc3-2fq9","url":"https://github.com/advisories/GHSA-7j69-qfc3-2fq9","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:54.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-5764","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5764","licence":"Public domain","modified":"2026-11-05T12:17:34.167Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1122","url":"https://osv.dev/vulnerability/PYSEC-2026-1122","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:19.568Z"}],"updatedAt":"2026-11-25T22:58:31.267Z","epss":{"score":0.00576,"percentile":0.48863,"date":"2026-12-01T12:00:22.000Z"}}