Advisory

PYSEC-2026-768

Also known as: CVE-2022-3697, GHSA-cpx3-93w7-457x

Summary

Ansible leaks password to logs

Details

A flaw was found in Ansible in the amazon.aws collection when using the tower_callback parameter from the amazon.aws.ec2_instance module. This flaw allows an attacker to take advantage of this issue as the module is handling the parameter insecurely, leading to the password leaking in the logs.

Severity

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

Dates

Published
2026-07-07 10:17 UTC
Modified
2026-07-07 11:45 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 2.5.0, fixed 7.0.0 (ecosystem)

Fixed versions

7.0.0

Fix

  • Fixed version 7.0.0
    pip install --upgrade ansible==7.0.0

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