# CVE-2021-20180: 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.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2022-03-16T14:12:30.000Z
- Modified: 2026-07-06T08:11:15.354Z
- Also known as: GHSA-fh5v-5f35-2rv2, PYSEC-2026-618
- 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: Fixed in ansible 2.9.18
- ansible (PyPI): from 2.8.0a1 before 2.8.19; from 2.9.0b1 before 2.9.18
- redhat ansible: before 2.9.18

## Every score

- GitHub: 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: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`
- PyPA Advisory Database: 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`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1915808> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20180> (advisory)
- <https://github.com/ansible/ansible/pull/73242> (web)
- <https://github.com/ansible/ansible/pull/73243> (web)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/ansible/ansible/blob/v2.8.19/changelogs/CHANGELOG-v2.8.rst> (web)
- <https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst> (web)
- <https://github.com/ansible/ansible/tree/v2.7.18/lib/ansible/modules/source_control> (web)
- <https://github.com/ansible/ansible/tree/v2.8.0a1/lib/ansible/modules/source_control> (web)
- <https://pypi.org/project/ansible> (package)
- <https://github.com/advisories/GHSA-fh5v-5f35-2rv2> (advisory)

## Sources

- CVE List: [CVE-2021-20180](https://www.cve.org/CVERecord?id=CVE-2021-20180), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fh5v-5f35-2rv2](https://github.com/advisories/GHSA-fh5v-5f35-2rv2), CC-BY-4.0, modified 2026-07-06
- NVD: [CVE-2021-20180](https://nvd.nist.gov/vuln/detail/CVE-2021-20180), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-618](https://osv.dev/vulnerability/PYSEC-2026-618), CC-BY-4.0, modified 2026-07-06

---

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