#VU23449 OS Command Injection in Ansible


Published: 2019-12-08 | Updated: 2020-01-24

Vulnerability identifier: #VU23449

Vulnerability risk: Medium

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2019-14904

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Ansible
Server applications / Remote management servers, RDP, SSH

Vendor: Red Hat Inc.

Description

The vulnerability allows a remote user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when processing zone names within the solaris_zone module. A remote uuser can provide a specially crafted zone name as a parameter to the os.system() call and execute arbitrary OS commands on the target system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Ansible: 2.9.0 - 2.9.1, 2.8.0 - 2.8.7, 2.7.0 - 2.7.15


External links
http://bugzilla.redhat.com/show_bug.cgi?id=1776944
http://github.com/ansible/ansible/blob/8c74df5e67fcae15d5d050ea1ffb4d6d1aa9070c/lib/ansible/modules/system/solaris_zone.py#L313
http://access.redhat.com/errata/RHSA-2020:0218
http://access.redhat.com/errata/RHSA-2020:0217
http://access.redhat.com/errata/RHSA-2020:0216
http://access.redhat.com/errata/RHSA-2020:0215


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability