CVE-2014-4657
ansible: improper restriction of code subset allows remote arbitrary code execution via crafted instructions
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat.
Description
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | ansible | 1.5.4 |
| debian 11 | ansible | 1.5.5+dfsg-1 |
| debian 12 | ansible | 1.5.5+dfsg-1 |
| debian 13 | ansible | 1.5.5+dfsg-1 |
| debian 14 | ansible | 1.5.5+dfsg-1 |
| echo | ansible | 1.5.5+dfsg-1 |
References
- https://access.redhat.com/security/cve/CVE-2014-4657
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/blob/release1.5.5/CHANGELOG.md
- https://github.com/ansible/ansible/commit/998793fd0ab55705d57527a38cee5e83f535974c
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-199.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2014-4657
- https://web.archive.org/web/20210120133852/https://www.securityfocus.com/bid/68232
- https://www.cve.org/CVERecord?id=CVE-2014-4657