PyPA Advisory Database
PYSEC-2026-768
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | ansible | From 2.5.0 before 7.0.0 (fixed in 7.0.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-3697
- https://github.com/ansible-collections/amazon.aws/pull/1199
- https://github.com/ansible/ansible/pull/35749
- https://github.com/ansible-community/ansible-build-data/blob/main/6/CHANGELOG-v6.rst
- https://github.com/ansible/ansible
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html
- https://pypi.org/project/ansible
- https://github.com/advisories/GHSA-cpx3-93w7-457x