Advisory

PYSEC-2026-618

Also known as: CVE-2021-20180, GHSA-fh5v-5f35-2rv2

Summary

Insertion of Sensitive Information into Log File in ansible

Details

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.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 2.8.0a1, fixed 2.8.19, introduced 2.9.0b1, fixed 2.9.18 (ecosystem)

Fixed versions

2.8.19, 2.9.18

Fix

  • Fixed version 2.8.19
    pip install --upgrade ansible==2.8.19
  • Fixed version 2.9.18
    pip install --upgrade ansible==2.9.18

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences