CVE-2022-3697 json
Ansible leaks password to logs
published 2022-10-28 4 y ago modified 2026-07-07 4 mo ago also GHSA-cpx3-93w7-457x , PYSEC-2026-768 , EUVD-2022-7080
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi ansible 7.0.0
- redhat ansible 2.10.0
- redhat ansible_collection 2.0.0, 5.1.0
- ansible Debian 14, Debian 13, Debian 12 7.0.0+dfsg-1
debian advisories DEBIAN-CVE-2022-3697
- ansible Ubuntu Pro 18.04 LTS 2.5.1+dfsg-1ubuntu0.1+esm2
- ansible Ubuntu Pro 20.04 LTS 2.9.6+dfsg-1ubuntu0.1~esm2
- ansible Ubuntu Pro 22.04 LTS 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4
ubuntu advisories UBUNTU-CVE-2022-3697
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/ansible-collections/amazon.aws#1199 pull request
- github.com/ansible/ansible#35749 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-3697 updated cvss 5.7
ansible: improper handling of tower_callback parameter in amazon.aws collection
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/ee-supported-rhel9affected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ansible | >=2.5.0, <7.0.0 |
7.0.0 |
Affected products
- n/a ansible, ansible community.aws, ansible amazon.aws
Classification
- Weakness
-
- CWE-233 Improper Handling of Parameters
References
-
github.com
/ansible-collections/amazon.aws/pull/1199
web, third-party-advisory
-
github.com
/ansible/ansible/pull/35749
web
-
lists.debian.org
/debian-lts-announce/2023/12/msg00018.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-3697
advisory
-
github.com
/ansible-community/ansible-build-data/blob/main/6/CHANGELOG-v6.rst
web
-
github.com
/ansible/ansible
package
-
pypi.org
/project/ansible
package
-
github.com
/advisories/GHSA-cpx3-93w7-457x
advisory
Sources
- CVE List CVE-2022-3697
- GitHub Advisory GHSA-cpx3-93w7-457x
- NVD CVE-2022-3697
- OSV PYSEC-2026-768
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.