{"answers":{"affected":"7 open source packages ship an affected version, including ansible-core. It affects 6 products.","exploited":"There is no known exploitation of CVE-2023-5764 in the wild and no public exploit code.","fix":"Upgrade ansible-core to a fixed version for your release line: 2.14.12, 2.15.8 or 2.16.1.","what":"CVE-2023-5764 is a high-severity code injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-5764 and fix it if it is affected.\n\nWhat it is: CVE-2023-5764 is a high-severity code injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-5764 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ansible-core (PyPI): affected all versions; fixed in 2.14.12, 2.15.8, 2.16.1\n- ansible-core (PyPI): affected all versions; fixed in 2.14.12\n- ansible-core (PyPI): affected all versions; fixed in 2.14.12\n- ansible-core (PyPI): affected from 2.15.0; fixed in 2.15.8\n- ansible-core (PyPI): affected from 2.15.0; fixed in 2.15.8\n- ansible-core (PyPI): affected from 2.16.0; fixed in 2.16.1\n- ansible-core (PyPI): affected from 2.16.0; fixed in 2.16.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-5764/ (Markdown: https://insights.sbomify.com/CVE-2023-5764/index.md)","id":"CVE-2023-5764","markdown":"https://insights.sbomify.com/CVE-2023-5764/index.md","name":"CVE-2023-5764","record":{"aliases":["AZL-32158","AZL-34538","CLSA-2024-1716272658","CLSA-2024-1716287930","CLSA-2024-1716485825","CLSA-2025-1761901881","DEBIAN-CVE-2023-5764","GHSA-7j69-qfc3-2fq9","OESA-2025-1391","OESA-2025-1392","OESA-2025-1393","OESA-2025-1394","PYSEC-2026-1122","UBUNTU-CVE-2023-5764","openSUSE-SU-2024:13485-1","openSUSE-SU-2024:13486-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ansible Automation Platform","requires_auth":"low_privilege","summary":"An attacker can execute arbitrary code via template injection in Ansible by crafting malicious template data, affecting automation platform users.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"extra_packages_for_enterprise_linux","vendor":"fedoraproject"},{"product":"fedora","vendor":"fedoraproject"},{"product":"ansible","vendor":"redhat"},{"product":"ansible_automation_platform","vendor":"redhat"},{"product":"ansible_developer","vendor":"redhat"},{"product":"ansible_inside","vendor":"redhat"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Ansible: template injection","id":"CVE-2023-5764","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:extra_packages_for_enterprise_linux","products":["fedoraproject:extra_packages_for_enterprise_linux","fedoraproject:fedora"],"type":"code_injection","year":"2023"},"n_packages":8,"n_references":3,"next":{"headline":"Missing authorization in Remote Desktop Manager","id":"CVE-2023-5765"},"packages":[{"ecosystem":"PyPI","fixed":["2.14.12","2.15.8","2.16.1"],"introduced":["0","2.15.0","2.16.0"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"PYSEC-2026-1122"},{"ecosystem":"PyPI","fixed":["2.14.12"],"introduced":["0"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"PyPI","fixed":["2.14.12"],"introduced":["0"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"PyPI","fixed":["2.15.8"],"introduced":["2.15.0"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"PyPI","fixed":["2.15.8"],"introduced":["2.15.0"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"PyPI","fixed":["2.16.1"],"introduced":["2.16.0"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"PyPI","fixed":["2.16.1"],"introduced":["2.16.0"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-7j69-qfc3-2fq9"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.15.7-1.1"],"introduced":["0"],"last_affected":[],"package":"ansible-documentation","purl":"pkg:rpm/opensuse/ansible-documentation\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13486-1"}],"prev":{"headline":"Glassfish remote code execution","id":"CVE-2023-5763"},"products":["Red Hat Ansible Automation Platform 2.4 for RHEL 8","Red Hat Ansible Automation Platform 2.4 for RHEL 9"],"published":"2023-12-12","related":[{"cvss_score":9.8,"headline":"Command injection in ImageMagick","id":"CVE-2023-34152","kev_date_added":null,"published":"2023-05-30"},{"cvss_score":9.8,"headline":"Code injection in rxvt-unicode","id":"CVE-2022-4170","kev_date_added":null,"published":"2022-12-09"},{"cvss_score":9.8,"headline":"Moodle Minor SQL injection risk in admin user browsing","id":"CVE-2022-40315","kev_date_added":null,"published":"2022-09-30"},{"cvss_score":9.1,"headline":"Moodle blind Server-Side Request Forgery (SSRF) vulnerability in LTI provider library","id":"CVE-2022-45152","kev_date_added":null,"published":"2022-11-25"},{"cvss_score":9.1,"headline":"Server side NTLM does not properly check parameters in FreeRDP","id":"CVE-2022-24882","kev_date_added":null,"published":"2022-04-26"},{"cvss_score":8.8,"headline":"Use after free in Chrome","id":"CVE-2022-2158","kev_date_added":null,"published":"2022-07-28"},{"cvss_score":8.8,"headline":"Use after free in Chrome","id":"CVE-2022-2163","kev_date_added":null,"published":"2022-07-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-20","vendors":["Red Hat"]},"summary":"An attacker can execute arbitrary code via template injection in Ansible by crafting malicious template data, affecting automation platform users.","url":"https://insights.sbomify.com/CVE-2023-5764/"}