# CVE-2022-3697: Ansible leaks password to logs

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Published: 2022-10-28T00:00:00.000Z
- Modified: 2026-07-07T11:56:18.999Z
- Also known as: GHSA-cpx3-93w7-457x, PYSEC-2026-768
- Weaknesses: CWE-233
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- 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 before 7.0.0
- redhat ansible: from 2.5.0 before 2.10.0
- redhat ansible_collection: before 2.0.0; from 2.1.0 before 5.1.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ansible-collections/amazon.aws/pull/1199> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3697> (advisory)
- <https://github.com/ansible/ansible/pull/35749> (web)
- <https://github.com/ansible-community/ansible-build-data/blob/main/6/CHANGELOG-v6.rst> (web)
- <https://github.com/ansible/ansible> (package)
- <https://pypi.org/project/ansible> (package)
- <https://github.com/advisories/GHSA-cpx3-93w7-457x> (advisory)

## Sources

- CVE List: [CVE-2022-3697](https://www.cve.org/CVERecord?id=CVE-2022-3697), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-cpx3-93w7-457x](https://github.com/advisories/GHSA-cpx3-93w7-457x), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-3697](https://nvd.nist.gov/vuln/detail/CVE-2022-3697), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-768](https://osv.dev/vulnerability/PYSEC-2026-768), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-3697 · Whole record: https://cve.day/CVE-2022-3697.json · Rebuilt by cve.day 2026-11-25T22:58:16.058Z
