CVE-2022-3697Redhat Ansible
High 7.5 No auth needed
Follow: this CVE · Redhat · Redhat Ansible We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Oct 28, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-233
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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
- Apply the vendor's security update for Ansible.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | ansible |
≥ 2.5.0 < 7.0.0 |
7.0.0 |
pip install "ansible>=7.0.0" |
| PyPI | ansible |
≥ 2.5.0 < 7.0.0 |
7.0.0 |
pip install "ansible>=7.0.0" |
Per OSV / GitHub Advisories (GHSA-cpx3-93w7-457x, PYSEC-2026-768). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible | ≥ 2.5.0 < 2.10.0 |
| redhat | ansible_collection | < 2.0.0 |
| redhat | ansible_collection | ≥ 2.1.0 < 5.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- lists.debian.org