The safe_eval function in Ansible before 1.5.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions.
The safe_eval function in Ansible before
Exploit
CVE-2014-4657
NVD
Refer to CVE-2014-4657 NVD advisory