OS Command Injection and Improper Input Validation in ansible
A flaw was found in the solaris_zone module from the Ansible Community modules. When setting the name for the zone on the Solaris host, the zone name is checked by listing the process with the 'ps' bare command on the remote machine. An attacker could take advantage of this flaw by crafting the name of the zone and executing arbitrary commands in the remote host. Ansible Engine 2.7.15, 2.8.7, and 2.9.2 as well as previous versions are affected.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | ansible | < 2.7.16, >= 2.8.0a1, < 2.8.8, >= 2.9.0a1, < 2.9.3 | 2.7.16, 2.8.8, 2.9.3 |
References
- https://github.com/ansible/ansible/pull/65686
- https://bugzilla.redhat.com/show_bug.cgi?id=1776944
- https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html
- https://github.com/advisories/GHSA-gwr8-5j83-483c
- https://nvd.nist.gov/vuln/detail/CVE-2019-14904
- https://github.com/ansible/ansible/commit/589a415f887b6f2bb65cd07fe6b2e9d0a8156b69
- https://github.com/ansible/ansible/commit/6a86650109b8654f5898369e45d3857624edf907
- https://github.com/ansible/ansible/commit/a1b0f72c98b4b2afaab8aafa255e82c2075049c8
- https://github.com/ansible/ansible
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-161.yaml
- https://www.debian.org/security/2021/dsa-4950
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:L- Weakness (CWE)
CWE-20, CWE-78- Platform
- Python (PyPI)
- Package
ansible- Disclosed
- 26.08.2020
- Updated
- 11.10.2026 11:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2020-161 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-gwr8-5j83-483c - CC BY 4.0
Vulnerability history: ansible
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 68
- First → latest
- 09.2013 12.2025
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 9
- High 24
- Medium 27
- Low 6
- Unrated 2
Disclosures per year
- 2017: 3
- 2018: 12
- 2019: 8
- 2020: 29
- 2021: 7
- 2022: 3
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
earlier: 4
-
OS Command Injection and Improper Input Validation in ansible this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.