CVE-2021-20180
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
- 16 Mar 2022
- Last modified
- 6 Jul 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-532
- Also known as
- GHSA-fh5v-5f35-2rv2PYSEC-2026-618
- Sources
- NVDJSONOSV GHSA-fh5v-5f35-2rv2JSONOSV PYSEC-2026-618JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| 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 |
| OSV | PyPA | 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 |
| OSV | PyPI | ansible | >= 2.8.0a1, < 2.8.19 | 2.8.19 |
| OSV | PyPI | ansible | >= 2.9.0b1, < 2.9.18 | 2.9.18 |
| OSV | PyPI | ansible | >= 2.8.0a1, < 2.8.19; >= 2.9.0b1, < 2.9.18 | 2.8.19, 2.9.18 |
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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 16 Mar 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Mar 2022)