CVE-2021-20180: Ansible - Credential Disclosure
- Cve: CVE-2021-20180
- Name: Ansible - Credential Disclosure
- 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.
- Impact: Attackers can steal sensitive credentials from logs, leading to potential unauthorized access and data breaches.
- Remediation: Update to the latest version of the ansible module where this flaw is fixed, or implement log sanitization to prevent credential exposure.
- Vulnerability type: hardcoded_credentials
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs access to console logs
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00314
- Epss percentile: 0.24808
- Assignee: [email protected]
- Published at: 2022-03-16T15:15:09Z
- Age in days: 1714
- Modified at: 2026-06-17T03:33:25Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-20180
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-532 | Insertion of Sensitive Information into Log File |
References
| Url | Source | Tags |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1915808 | nvd | Issue Tracking, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:ansible | < 2.9.18 | no | nvd | /v1/products/redhat/ansible |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ansible/ansible | package, pull | yes | /v1/repositories/ansible/ansible |
Index
- Repositories: 65
- Repositories high signal: 21
- Packages: 1
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts