OS Command Injection in Ansible - CVE-2019-14904
Published: December 8, 2019 / Updated: January 24, 2020
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 (Debian package)
ansible (Alpine package)
ansible
ansible-help
Fedora
SUSE Linux
Opensuse
openEuler
How to mitigate CVE-2019-14904
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
- 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
Related Security Bulletins
- Multiple vulnerabilities in Ansible
- OpenSUSE Linux update for ansible
- OpenSUSE Linux update for ansible
- OS Command Injection in ansible (Alpine package)
- Debian update for ansible
- openEuler 20.03 LTS SP2 update for ansible
- openEuler 20.03 LTS SP1 update for ansible
- Fedora 30 update for ansible
- Fedora 31 update for ansible
- Fedora EPEL 7 update for ansible
- Fedora EPEL 8 update for ansible