CVE-2021-20178
Insertion of Sensitive Information into Log File in ansible
Reported by redhat · Published May 26, 2021
ansible is fixed in 2.9.18 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible | PyPI | 2.9.18 |
| ansible | Arch Linux | 2.10.7-1 |
| ansible | redhat | 2.9.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Ansible | before 2.9.18 |
| arch | ansible | 0 |
| n/a | Ansible | 2.9.18 |
| PyPI | ansible | 0 |
Timeline
- Jan 11, 2021 CVE Published
- May 27, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (10 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (5 in total, the first dated here)
- Aug 27, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-20178
vulnetix vdb fixes CVE-2021-20178
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20178/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-e9478617ae vendor-advisory
- FEDORA-2021-9a0903469c vendor-advisory
- [debian-lts-announce] 20231228 [SECURITY] [DLA 3695-1] ansible security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2021-20178 advisory
- https://github.com/advisories/GHSA-wv5p-gmmv-wh9v advisory
- https://github.com/ansible-collections/community.general/pull/1635 patch
- https://github.com/ansible-collections/community.general/commit/1d0c5e2ba47724c31a18d7b08b9daf13df8829dc patch
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes url
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst#security-fixes, url
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-106.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37 url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUQ2QKAQA5OW2TY3ACZZMFIAJ2EQTG37 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HIU7QZUV73U6ZQ65VJWSFBTCALVXLH55 url