Ansible Arbitrary Code Execution
User module in ansible before 1.6.6 is vulnerable to command execution. Ansible can get the result of remote command in variable, which may come from untrusted source of input. If the content of variable isn't properly filtered and when attempting to use the variable, it will trigger a function that passes it through jinja 2 template engine that can result into arbitrary command execution. Under certain circumstances, unprivileged user on system that is being managed via ansible can execute code on the managing host under UID of running ansible process.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2014-3498US | high8.8 | — | ||
The user module in ansible before 1.6.6 allows remote authenticated users to execute arbitrary commands. | ||||
references
External citations — patches, advisories, analysis.
- https://bugzilla.redhat.com/show_bug.cgi?id=1335551WEB
- https://github.com/ansible/ansiblePACKAGE
- https://github.com/ansible/ansible/commit/8ed6350e65c82292a631f08845dfaacffe7f07f5WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2017-2.yamlWEB
- https://nvd.nist.gov/vuln/detail/CVE-2014-3498ADVISORY
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan