---
id: CVE-2021-20180
aliases:
  - GHSA-fh5v-5f35-2rv2
  - PYSEC-2026-618
title: Insertion of Sensitive Information into Log File in ansible
summary: Insertion of Sensitive Information into Log File in ansible
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
vendor: ansible
product: ansible
ecosystem: pip
affected:
  - 'ansible >= 2.8.0a1, < 2.8.19'
  - 'ansible >= 2.9.0b1, < 2.9.18'
patched:
  - ansible 2.8.19
  - ansible 2.9.18
published: '2022-03-17'
updated: '2026-07-06'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-fh5v-5f35-2rv2'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-20180'
  - url: 'https://github.com/ansible/ansible/pull/73242'
  - url: 'https://github.com/ansible/ansible/pull/73243'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1915808'
  - url: 'https://github.com/ansible/ansible'
  - url: >-
      https://github.com/ansible/ansible/blob/v2.8.19/changelogs/CHANGELOG-v2.8.rst
  - url: >-
      https://github.com/ansible/ansible/blob/v2.9.18/changelogs/CHANGELOG-v2.9.rst
  - url: >-
      https://github.com/ansible/ansible/tree/v2.7.18/lib/ansible/modules/source_control
  - url: >-
      https://github.com/ansible/ansible/tree/v2.8.0a1/lib/ansible/modules/source_control
tags:
  - osv
  - pip
epss: 0.00314
epssPercentile: 0.24593
ingestedAt: '2026-07-08T18:25:48.910Z'
---

## Overview

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 packages

- `ansible >= 2.8.0a1, < 2.8.19`
- `ansible >= 2.9.0b1, < 2.9.18`

## Remediation

Upgrade to a patched release:

- `ansible 2.8.19`
- `ansible 2.9.18`
