CVE-2019-14904 OS Command Injection and Improper Input Validation in ansible

High 7.3 Published Updated

An attacker can execute arbitrary commands on a remote Solaris host by crafting a malicious zone name in the Ansible solaris_zone module.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-14904?

CVE-2019-14904 is a high-severity command injection vulnerability in Debian Debian Linux, published on 25 Aug 2020. 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 the solaris_zone module from the Ansible Community modules. When setting the name for the zone on the Solaris host, the zone name is checked by listing the process with the 'ps' bare command on the remote machine. An attacker could take advantage of this flaw by crafting the name of the zone and executing arbitrary commands in the remote host. Ansible Engine 2.7.15, 2.8.7, and 2.9.2 as well as previous versions are affected.

Weakness: CWE-78, CWE-20

Which versions are affected by CVE-2019-14904?

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

PackageAffectedFixed in
ansible PyPIAll versions2.7.15, 2.8.7, 2.9.2
ansible PyPIAll versions2.7.16
ansible PyPIAll versions2.7.16
ansible PyPIFrom 2.8.0a12.8.8
ansible PyPIFrom 2.8.0a12.8.8
ansible PyPIFrom 2.9.0a12.9.3
1 more packages
ansible PyPIFrom 2.9.0a12.9.3

Products include Debian Debian Linux, Redhat Ansible.

How do I fix CVE-2019-14904?

Upgrade ansible to a fixed version for your release line: 2.7.15, 2.8.7, 2.9.2 or 2.7.16.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-14904 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-14904, CLSA-2026-1777489309, CLSA-2026-1777614493, DEBIAN-CVE-2019-14904, GHSA-gwr8-5j83-483c, PYSEC-2020-161 and 1 more.

Is CVE-2019-14904 in your software?

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

Check your SBOMs for free