CVE-2014-4657 Ansible Remote Code Execution
Remote attackers can execute arbitrary code via crafted instructions due to improper restriction in Ansible's safe_eval function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-4657?
CVE-2014-4657 is a critical code injection vulnerability in n/a, published on 20 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2014-4657?
3 open source packages ship an affected version, including ansible. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ansible PyPI | All versions | 1.5.4 |
ansible PyPI | All versions | 1.5.4 |
ansible PyPI | All versions | 1.5.4 |
Products include Redhat Ansible.
How do I fix CVE-2014-4657?
Upgrade ansible to 1.5.4 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2014-4657 being exploited?
There is no known exploitation of CVE-2014-4657 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2014-4657, GHSA-qg47-5px9-32g7, PYSEC-2020-199.