Multiple vulnerabilities in Ansible



Risk Medium
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2019-14905
CVE-2019-14904
CWE-ID CWE-78
Exploitation vector Network
Public exploit N/A
Vulnerable software
Ansible
Server applications / Remote management servers, RDP, SSH

Vendor Red Hat Inc.

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) OS Command Injection

EUVDB-ID: #VU23450

Risk: Low

CVSSv4.0: 5.9 [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 - 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 updates from vendor's website.

Vulnerable software versions

Ansible: 2.7.0 rc1 - 2.9.1

CPE2.3 External links

https://bugzilla.redhat.com/show_bug.cgi?id=1776943
https://access.redhat.com/errata/RHSA-2020:0218
https://access.redhat.com/errata/RHSA-2020:0217
https://access.redhat.com/errata/RHSA-2020:0216
https://access.redhat.com/errata/RHSA-2020:0215


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.

How the attacker can exploit this vulnerability?

The attacker would have to send a specially crafted request to the affected application in order to exploit this vulnerability.

The attacker would have to login to the system and perform certain actions in order to exploit this vulnerability.

Is there known malware, which exploits this vulnerability?

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

2) OS Command Injection

EUVDB-ID: #VU23449

Risk: Medium

CVSSv4.0: 6.3 [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/E:U/U:Green]

CVE-ID: CVE-2019-14904

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 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.7.0 rc1 - 2.9.1

CPE2.3 External links

https://bugzilla.redhat.com/show_bug.cgi?id=1776944
https://github.com/ansible/ansible/blob/8c74df5e67fcae15d5d050ea1ffb4d6d1aa9070c/lib/ansible/modules/system/solaris_zone.py#L313
https://access.redhat.com/errata/RHSA-2020:0218
https://access.redhat.com/errata/RHSA-2020:0217
https://access.redhat.com/errata/RHSA-2020:0216
https://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.

How the attacker can exploit this vulnerability?

The attacker would have to send a specially crafted request to the affected application in order to exploit this vulnerability.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###