CVE-2014-4657Redhat Ansible
Critical 9.8 No auth needed
Follow: this CVE · Redhat · Redhat Ansible We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.5% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Feb 20, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ansible.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | ansible |
< 1.5.4 |
1.5.4 |
pip install "ansible>=1.5.4" |
| PyPI | ansible |
< 1.5.4 |
1.5.4 |
pip install "ansible>=1.5.4" |
Per OSV / GitHub Advisories (GHSA-qg47-5px9-32g7, PYSEC-2020-199). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible | < 1.5.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- www.securityfocus.com Third Party Advisory VDB Entry