SecurityContext

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

IdName
CWE-532Insertion of Sensitive Information into Log File

References

UrlSourceTags
https://bugzilla.redhat.com/show_bug.cgi?id=1915808nvdIssue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
redhat:ansible< 2.9.18nonvd/v1/products/redhat/ansible

Projects

RepositoryLink kindsIndexedUrl
ansible/ansiblepackage, pullyes/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