# CVE-2021-20178: Insertion of Sensitive Information into Log File in ansible

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2021-05-26T00:00:00.000Z
- Modified: 2026-06-17T03:33:25.443Z
- Also known as: GHSA-wv5p-gmmv-wh9v, PYSEC-2021-106
- Weaknesses: CWE-532
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- Ansible: before 2.9.18
- ansible (PyPI): before 2.9.18
- redhat ansible: before 2.9.18
- redhat ansible_tower: 3.0
- fedoraproject fedora: 32; 33

## Every score

- GitHub: CVSS:3.1 5.5 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/> (vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1914774> (issue-tracking, report, vendor-advisory, web)
- <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> (mailing-list, 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%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55> (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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37/> (web)
- <https://github.com/ansible-collections/community.general/pull/1635,> (web)

## Sources

- CVE List: [CVE-2021-20178](https://www.cve.org/CVERecord?id=CVE-2021-20178), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-wv5p-gmmv-wh9v](https://github.com/advisories/GHSA-wv5p-gmmv-wh9v), CC-BY-4.0, modified 2024-11-25
- NVD: [CVE-2021-20178](https://nvd.nist.gov/vuln/detail/CVE-2021-20178), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-106](https://osv.dev/vulnerability/PYSEC-2021-106), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-20178 · Whole record: https://cve.day/CVE-2021-20178.json · Rebuilt by cve.day 2026-11-25T22:58:01.538Z
