GitHub Advisory Database
GHSA-qg47-5px9-32g7
Ansible Remote Code Execution
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | ansible | All versions before 1.5.4 (fixed in 1.5.4) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-4657
- https://github.com/ansible/ansible/commit/998793fd0ab55705d57527a38cee5e83f535974c
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-199.yaml
- https://web.archive.org/web/20210120133852/https://www.securityfocus.com/bid/68232