OS Command Injection in Ansible - CVE-2019-14905

 

OS Command Injection in Ansible - CVE-2019-14905

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


Vulnerability identifier: #VU23450
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2019-14905
CWE-ID: CWE-78
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Red Hat Inc.
Affected software:
Ansible

Detailed vulnerability description

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

The vulnerability exists due to incorrect validation of filenames within the nxos_file_copy module when copying files to a flash or bootflash on NXOS devices using the remote_file parameter. A local user or malicious code can abuse this functionality to inject and execute arbitrary OS commands on the system with elevated privileges.



How to mitigate CVE-2019-14905

Install updates from vendor's website.

Sources