ansible-core@2.17.2rc1 vulnerabilities

Radically simple IT automation

Direct Vulnerabilities

Known vulnerabilities in the ansible-core package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
Improper Input Validation

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

How to fix Improper Input Validation?

Upgrade ansible-core to version 2.18.0 or higher.

[,2.18.0)
  • M
Incorrect Authorization

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 Incorrect Authorization through the user module. An attacker can modify or replace file contents and take ownership of files on any system path by exploiting directory traversal permissions.

Note:

This is only exploitable if someone with root privileges uses the user module with the generate_ssh_key option (disabled by default) and targets an unprivileged user. The unprivileged user needs to have traversal permissions on the directory containing the exploited target file.

How to fix Incorrect Authorization?

Upgrade ansible-core to version 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 or higher.

[,2.14.18rc1) [2.15.0b1,2.15.13rc1) [2.16.0b1,2.16.13rc1) [2.17.0b1,2.17.6rc1) [2.18.0b1,2.18.0rc2)
  • M
Exposure of Sensitive Information in Log Files

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 Exposure of Sensitive Information in Log Files when loading variables from Ansible Vault without setting no_log: true, which is the behavior of some tasks, including include_vars. This vulnerability can be exploited during the execution of a playbook.

Note:

This is a similar vulnerability to the previously reported CVE-2024-0690.

How to fix Exposure of Sensitive Information in Log Files?

There is no fixed version for ansible-core.

[0,)