{"id":"CVE-2022-3697","aliases":["CVE-2022-3697","GHSA-cpx3-93w7-457x","PYSEC-2026-768"],"related":[],"kind":"vulnerability","state":"published","title":"Ansible leaks password to logs","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una falla en Ansible en la colección amazon.aws al usar el parámetro tower_callback del módulo amazon.aws.ec2_instance. Esta falla permite que un atacante aproveche este problema ya que el módulo maneja el parámetro de manera insegura, lo que provoca que la contraseña se filtre en los registros.","source":"nvd"}],"published":"2022-10-28T00:00:00.000Z","modified":"2026-07-07T11:56:18.999Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-233"],"affected":[{"ranges":[{"version":"ansible from 2.5.0 before 2.10","status":"affected"},{"version":"ansible community.aws before 2.0.0","status":"affected"},{"version":"ansible amazon.aws from 2.1.0 before 5.1.0","status":"affected"}],"product":"ansible, ansible community.aws, ansible amazon.aws","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.5.0","status":"affected","fixed":"7.0.0"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.5.0","fixed":"2.10.0"}],"vendor":"redhat","product":"ansible","cpe":"cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.0.0"},{"status":"affected","introduced":"2.1.0","fixed":"5.1.0"}],"vendor":"redhat","product":"ansible_collection","cpe":"cpe:2.3:a:redhat:ansible_collection:*:*:*:*:*:community_aws:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.5.0","status":"affected","fixed":"7.0.0"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://github.com/ansible-collections/amazon.aws/pull/1199","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3697","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/pull/35749","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible-community/ansible-build-data/blob/main/6/CHANGELOG-v6.rst","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansible","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cpx3-93w7-457x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-3697","url":"https://www.cve.org/CVERecord?id=CVE-2022-3697","licence":"CVE Terms of Use","modified":"2025-02-13T16:32:52.283Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cpx3-93w7-457x","url":"https://github.com/advisories/GHSA-cpx3-93w7-457x","licence":"CC-BY-4.0","modified":"2026-07-07T11:56:18.999Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-3697","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3697","licence":"Public domain","modified":"2026-06-17T05:00:07.890Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-768","url":"https://osv.dev/vulnerability/PYSEC-2026-768","licence":"CC-BY-4.0","modified":"2026-07-07T11:45:46.892Z"}],"updatedAt":"2026-11-25T22:58:16.058Z","epss":{"score":0.00909,"percentile":0.60992,"date":"2026-12-01T12:00:22.000Z"}}