OS Command Injection in Ansible - CVE-2019-14904

 

OS Command Injection in Ansible - CVE-2019-14904

Published: December 8, 2019 / Updated: January 24, 2020


Vulnerability identifier: #VU23449
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-14904
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Ansible
ansible (Debian package)
ansible (Alpine package)
ansible
ansible-help
Fedora
SUSE Linux
Opensuse
openEuler

How to mitigate CVE-2019-14904

Install updates from vendor's website.

Ansible - update to 2.9.2
ansible (Debian package) - update to 2.7.7+dfsg-1+deb10u1
ansible (Alpine package) - addressed in versions 2.7.16-r0, 2.8.8-r0
ansible - addressed in versions 2.5.5-2, 2.5.5-6
ansible-help - addressed in versions 2.5.5-2, 2.5.5-6
ansible - addressed in versions 2.9.3-1.el7, 2.9.3-1.el8, 2.9.3-1.fc30, 2.9.3-1.fc31

External References

Related Security Bulletins