CVE-2014-4678 Ansible Code Injection Vulnerability

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-4678?

CVE-2014-4678 is a critical code injection vulnerability in Debian Debian Linux, 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.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.

Weakness: CWE-74

Which versions are affected by CVE-2014-4678?

3 open source packages ship an affected version, including ansible. It affects 2 products.

PackageAffectedFixed in
ansible PyPIAll versions1.6.4
ansible PyPIAll versions1.6.4
ansible PyPIAll versions1.6.4

Products include Debian Debian Linux, Redhat Ansible.

How do I fix CVE-2014-4678?

Upgrade ansible to 1.6.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2014-4678 being exploited?

There is no known exploitation of CVE-2014-4678 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2014-4678, GHSA-66c7-5pwv-mm3j, PYSEC-2020-203, UBUNTU-CVE-2014-4678.

Is CVE-2014-4678 in your software?

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

Check your SBOMs for free