CVE-2014-3498: Input Validation
It was reported that 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. 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.
Upstream patch:
https://github.com/ansible/ansible/commit/8ed6350e65c82292a631f08845dfaacffe7f07f5
Other sources
The user module in ansible before 1.6.6 allows remote authenticated users to execute arbitrary commands.
— MITRE
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.
— GitHub
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2014-3498?
CVE-2014-3498 is classified as a high severity vulnerability due to the potential for command execution.
How do I fix CVE-2014-3498?
To fix CVE-2014-3498, you should upgrade ansible to version 1.6.6 or later.
What versions of Ansible are affected by CVE-2014-3498?
Versions of Ansible prior to 1.6.6, specifically up to and including 1.6.5, are affected by CVE-2014-3498.
What type of vulnerability is CVE-2014-3498?
CVE-2014-3498 is a command execution vulnerability that arises from improper filtering of user input.
Can CVE-2014-3498 be exploited remotely?
Yes, CVE-2014-3498 can be exploited remotely since it involves executing commands with untrusted input.