Improper Input Validation Affecting ansible-core package, versions [,2.18.0)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-ANSIBLECORE-8366738
- published 12 Nov 2024
- disclosed 11 Nov 2024
- credit Unknown
Introduced: 11 Nov 2024
New CVE-2024-11079 Open this link in a new tabHow to fix?
Upgrade ansible-core
to version 2.18.0 or higher.
Overview
ansible-core is an a radically simple IT automation system. It handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex changes like zero-downtime rolling updates with load balancers easy.
Affected versions of this package are vulnerable to Improper Input Validation through the use of the hostvars
object. Attackers can bypass unsafe content protections and execute templated content, leading to arbitrary code execution. This is only exploitable if attackers can modify the content returned to a play that utilizes hostvars
to reference unsafe content
Workaround
Restrict access to inventory files and Ansible playbooks to trusted users to minimize exploitation risks and avoid using the hostvars
object to reference content marked as !unsafe
.