CVE-2021-20178
MEDIUM 5.5CVSS 3.1Insertion of Sensitive Information into Log File in ansible
A flaw was found in ansible module where credentials are disclosed in the console log by default and not protected by the security feature when using the bitbucket_pipeline_variable module. This flaw allows an attacker to steal bitbucket_pipeline credentials. The highest threat from this vulnerability is to confidentiality.
- Published
- 26 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-532
- Also known as
- GHSA-wv5p-gmmv-wh9vPYSEC-2021-106
- Sources
- NVDJSONOSV GHSA-wv5p-gmmv-wh9vJSONOSV PYSEC-2021-106JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansiblecpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:* |
< 2.9.18 | 2.9.18 |
| NVD | redhat | ansible_towercpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:* |
= 3.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| OSV | PyPI | ansible | < 2.9.18 | 2.9.18 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1914774 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://github.com/ansible-collections/community.general/pull/1635%2C
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes%2C · WEB
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20178 · ADVISORY
- https://github.com/ansible-collections/community.general/pull/1635 · WEB
- https://github.com/ansible-collections/community.general/commit/1d0c5e2ba47724c31a18d7b08b9daf13df8829dc · WEB
- https://github.com/advisories/GHSA-wv5p-gmmv-wh9v · ADVISORY
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes · WEB
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes, · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-106.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55 · WEB
- https://github.com/ansible-collections/community.general/pull/1635, · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 26 May 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 May 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jun 2021)