{"answers":{"affected":"7 open source packages ship an affected version, including ansible-core.","exploited":"There is no known exploitation of CVE-2024-11079 in the wild and no public exploit code.","fix":"Upgrade ansible-core to a fixed version for your release line: 2.16.14rc1, 2.17.7rc1 or 2.18.1rc1.","what":"CVE-2024-11079 is a medium-severity code injection vulnerability in Red Hat Ansible Automation Platform Execution Environments, published on 11 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-11079 and fix it if it is affected.\n\nWhat it is: CVE-2024-11079 is a medium-severity code injection vulnerability in Red Hat Ansible Automation Platform Execution Environments, published on 11 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-11079 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ansible-core (PyPI): affected all versions; fixed in 2.16.14rc1, 2.17.7rc1, 2.18.1rc1\n- ansible-core (PyPI): affected all versions; fixed in 2.16.14rc1\n- ansible-core (PyPI): affected all versions; fixed in 2.16.14rc1\n- ansible-core (PyPI): affected from 2.17.0b1; fixed in 2.17.7rc1\n- ansible-core (PyPI): affected from 2.17.0b1; fixed in 2.17.7rc1\n- ansible-core (PyPI): affected from 2.18.0b1; fixed in 2.18.1rc1\n- ansible-core (PyPI): affected from 2.18.0b1; fixed in 2.18.1rc1\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-2024-11079/ (Markdown: https://insights.sbomify.com/CVE-2024-11079/index.md)","id":"CVE-2024-11079","markdown":"https://insights.sbomify.com/CVE-2024-11079/index.md","name":"CVE-2024-11079","record":{"aliases":["DEBIAN-CVE-2024-11079","DLA-4502-1","GHSA-99w6-3xph-cx78","PYSEC-2026-1123","UBUNTU-CVE-2024-11079","openSUSE-SU-2024:14545-1","openSUSE-SU-2024:14546-1","openSUSE-SU-2024:14547-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ansible automation tool","requires_auth":"low_privilege","summary":"Attackers can bypass unsafe content protections in Ansible-Core to execute arbitrary code via templated hostvars, requiring immediate patching.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A flaw was found in Ansible-Core. This vulnerability allows attackers to bypass unsafe content protections using the hostvars object to reference and execute templated content. This issue can lead to arbitrary code execution if remote data or module outputs are improperly templated within playbooks.","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-core: unsafe tagging bypass via hostvars object in ansible-core","id":"CVE-2024-11079","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":10,"n_references":4,"next":{"headline":"Post Grid and Gutenberg Blocks – ComboBlocks 2.2.85 - 2.3.32 - Unauthenticated Hook Injection","id":"CVE-2024-11080"},"packages":[{"ecosystem":"PyPI","fixed":["2.16.14rc1","2.17.7rc1","2.18.1rc1"],"introduced":["0","2.17.0b1","2.18.0b1"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"PYSEC-2026-1123"},{"ecosystem":"PyPI","fixed":["2.16.14rc1"],"introduced":["0"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"PyPI","fixed":["2.16.14rc1"],"introduced":["0"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"PyPI","fixed":["2.17.7rc1"],"introduced":["2.17.0b1"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"PyPI","fixed":["2.17.7rc1"],"introduced":["2.17.0b1"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"PyPI","fixed":["2.18.1rc1"],"introduced":["2.18.0b1"],"last_affected":[],"package":"ansible-core","purl":null,"source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"PyPI","fixed":["2.18.1rc1"],"introduced":["2.18.0b1"],"last_affected":[],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-99w6-3xph-cx78"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.18.1-1.1"],"introduced":["0"],"last_affected":[],"package":"ansible-core","purl":"pkg:rpm/opensuse/ansible-core\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14545-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.16.14-1.1"],"introduced":["0"],"last_affected":[],"package":"ansible-core-2.16","purl":"pkg:rpm/opensuse/ansible-core-2.16\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14546-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.17.7-1.1"],"introduced":["0"],"last_affected":[],"package":"ansible-core-2.17","purl":"pkg:rpm/opensuse/ansible-core-2.17\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14547-1"}],"prev":{"headline":"code-projects Job Recruitment register.php cross site scripting","id":"CVE-2024-11078"},"products":["Ansible Automation Platform Execution Environments","Red Hat Ansible Automation Platform 2.5 for RHEL 8","Red Hat Ansible Automation Platform 2.5 for RHEL 9","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux AI (RHEL AI)"],"published":"2024-11-11","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-29","vendors":["Red Hat"]},"summary":"Attackers can bypass unsafe content protections in Ansible-Core to execute arbitrary code via templated hostvars, requiring immediate patching.","url":"https://insights.sbomify.com/CVE-2024-11079/"}