CVE-2014-4678
ansible: safe_eval function does not properly restrict the code subset leads to arbitrary code execution via crafted instructions
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | ansible | 1.6.4 |
| debian 11 | ansible | 1.6.6+dfsg-1 |
| debian 12 | ansible | 1.6.6+dfsg-1 |
| debian 13 | ansible | 1.6.6+dfsg-1 |
| debian 14 | ansible | 1.6.6+dfsg-1 |
| echo | ansible | 1.6.6+dfsg-1 |
| ubuntu 14.04-ESM | ansible | 1.5.4+dfsg-1ubuntu0.1~esm2 |
References
- https://access.redhat.com/security/cve/CVE-2014-4678
- https://github.com/ansible/ansible/commit/5429b85b9f6c2e640074176f36ff05fd5e4d1916
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-203.yaml
- https://groups.google.com/forum/message/raw?msg=ansible-announce/ieV1vZvcTXU/5Q93ThkY9rIJ
- https://nvd.nist.gov/vuln/detail/CVE-2014-4678
- https://security-tracker.debian.org/tracker/CVE-2014-4678
- https://www.cve.org/CVERecord?id=CVE-2014-4678
- https://www.openwall.com/lists/oss-security/2014/06/26/30