Improper Input Validation and Command Injection in Ansible
ansible
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
ansible
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.
From the CVE record · redhat
Ansible controllers are vulnerable to template injection through facts used in templates. If a user puts templates in multi-line YAML strings and the facts do not routinely include special template characters, an attacker can inject commands and disclose sensitive information.
Anyone running the affected PyPI ansible package should check versions below 2.9.23, from 2.10.0a1 up to but not including 2.10.11rc1, or from 2.11.0a1 up to but not including 2.11.2rc1.