GitHub Advisory Database
GHSA-86hp-cj9j-33vv
Insertion of Sensitive Information into Log File, Invocation of Process Using Visible Sensitive Information, and Exposure of Sensitive Information to an Unauthorized Actor in Ansible
Details
A security flaw was found in Ansible Engine, all Ansible 2.7.x versions prior to 2.7.17, all Ansible 2.8.x versions prior to 2.8.11 and all Ansible 2.9.x versions prior to 2.9.7, when managing kubernetes using the k8s module. Sensitive parameters such as passwords and tokens are passed to kubectl from the command line, not using an environment variable or an input configuration file. This will disclose passwords and tokens from process list and no_log directive from debug module would not have any effect making these secrets being disclosed on stdout and log files.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | ansible | From 2.7.0a1 before 2.7.18 (fixed in 2.7.18) |
| PyPI | ansible | From 2.8.0a1 before 2.8.12 (fixed in 2.8.12) |
| PyPI | ansible | From 2.9.0a1 before 2.9.7 (fixed in 2.9.7) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-1753
- https://github.com/ansible-collections/kubernetes/pull/51
- https://github.com/ansible/ansible/pull/68195
- https://github.com/ansible/ansible/commit/04ba05e003b268b83df6c106ba5c0f08548b1380
- https://github.com/ansible/ansible/commit/137caed836ef096945086cfe75dc11587b68db3a
- https://github.com/ansible/ansible/commit/273d8538dbe5a7b5c9954f1929d3bb00904c43f6
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1753
- https://github.com/advisories/GHSA-86hp-cj9j-33vv
- https://github.com/ansible-collections/kubernetes
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-210.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB
- https://security.gentoo.org/glsa/202006-11
- https://www.debian.org/security/2021/dsa-4950