OS Command Injection in ansible (Alpine package)



Published: 2020-01-17
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2019-14905
CWE-ID CWE-78
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
ansible (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) OS Command Injection

EUVDB-ID: #VU23450

Risk: Low

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

CVE-ID: CVE-2019-14905

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: No

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.


Mitigation

Install update from vendor's website.

Vulnerable software versions

ansible (Alpine package): 2.7.9-r0 - 2.8.6-r0

External links

http://git.alpinelinux.org/aports/commit/?id=609712eebaae8fa38739e422702af34deca6e4d0
http://git.alpinelinux.org/aports/commit/?id=26f3ed589646c92c24f247a609f76403b0e4e045
http://git.alpinelinux.org/aports/commit/?id=4b4c6954cf0eab5315a9d6e41cdff036ca99f836
http://git.alpinelinux.org/aports/commit/?id=1243e4504e5eab5e6253188c8d16667508820289
http://git.alpinelinux.org/aports/commit/?id=b67a373492fd24911338d12cb9c2ede52b65ccf9


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###