CVE-2014-4657 Ansible Remote Code Execution

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
ansible PyPIAll versions1.5.4
ansible PyPIAll versions1.5.4
ansible PyPIAll versions1.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.

Sources

Also known as DEBIAN-CVE-2014-4657, GHSA-qg47-5px9-32g7, PYSEC-2020-199.

Is CVE-2014-4657 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free