CVE-2018-10875 Ansible Arbitrary Code Execution

High 7.8 Published Updated

Attackers can execute arbitrary code by manipulating the current working directory to load malicious Ansible plugins or modules.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-10875?

CVE-2018-10875 is a high-severity code injection vulnerability in Canonical Ubuntu Linux, published on 13 Jul 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in ansible. ansible.cfg is read from the current working directory which can be altered to make it point to a plugin or a module path under the control of an attacker, thus allowing the attacker to execute arbitrary code.

Weakness: CWE-426

Which versions are affected by CVE-2018-10875?

7 open source packages ship an affected version, including ansible. It affects 10 products.

PackageAffectedFixed in
ansible PyPIAll versions2.4.6.0
ansible PyPIAll versions2.4.6.0
ansible PyPIFrom 2.52.5.6, 2.4.6.0, 2.6.1
ansible PyPIFrom 2.5.0a12.5.6
ansible PyPIFrom 2.5.0a12.5.6
ansible PyPIFrom 2.6.0a12.6.1
1 more packages
ansible PyPIFrom 2.6.0a12.6.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Redhat Ansible Engine, Redhat Ceph Storage, Redhat Gluster Storage, Redhat Openshift and 4 more.

How do I fix CVE-2018-10875?

Upgrade ansible to a fixed version for your release line: 2.4.6.0, 2.5.6 or 2.6.1.

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

Is CVE-2018-10875 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-10875, DEBIAN-CVE-2018-10875, GHSA-fc4h-467w-46rh, PYSEC-2018-43, UBUNTU-CVE-2018-10875.

Is CVE-2018-10875 in your software?

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

Check your SBOMs for free