Insertion 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | ansible | >= 2.8.0a1, < 2.8.19, >= 2.9.0b1, < 2.9.18 | 2.8.19, 2.9.18 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-20180
- https://github.com/ansible/ansible/pull/73242
- https://github.com/ansible/ansible/pull/73243
- https://bugzilla.redhat.com/show_bug.cgi?id=1915808
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/blob/v2.8.19/changelogs/CHANGELOG-v2.8.rst
- https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst
- https://github.com/ansible/ansible/tree/v2.7.18/lib/ansible/modules/source_control
- https://github.com/ansible/ansible/tree/v2.8.0a1/lib/ansible/modules/source_control
- https://pypi.org/project/ansible
- https://github.com/advisories/GHSA-fh5v-5f35-2rv2
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-532- Platform
- Python (PyPI)
- Package
ansible- Disclosed
- 17.03.2022
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-618 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-fh5v-5f35-2rv2 - CC BY 4.0
Vulnerability history: ansible
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 68
- First → latest
- 09.2013 12.2025
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 9
- High 24
- Medium 27
- Low 6
- Unrated 2
Disclosures per year
- 2017: 3
- 2018: 12
- 2019: 8
- 2020: 29
- 2021: 7
- 2022: 3
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
earlier: 4
-
Insertion of Sensitive Information into Log File in ansible this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.