CVE-2022-3697: High severity redhat ansible vulnerability

Published Oct 25, 2022
·
Updated

A flaw was found in Ansible in the amazon.aws collection when using the towercallback parameter from the amazon.aws.ec2instance 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.

Other sources

A flaw was found in Ansible in the amazon.aws collection when using the towercallback parameter from the amazon.aws.ec2instance 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.

— Launchpad

For the amazon.aws collection while looking into the way that the amazon.aws.ec2instance module handles the "towercallback" parameter. There is the potential for the Windows password to leak into logs when using "towercallback.setpassword".

Because the towercallback parameter is just a raw dict, rather than having options set, nolog does not come into play and towercallback.setpassword, if set, can be leaked into the logs.

— Red Hat

Affected Software

18 affected componentsFixes available
pip/ansible>=2.5.0<7.0.0
7.0.0
redhat ansible>=2.5.0<2.10.0
redhat Ansible Collection Community Aws<2.0.0
redhat Ansible Collection Aws>=2.1.0<5.1.0
IBM Edge Application Manager<=4.5
Microsoft cm1 ansible 2.9.27-2
debian/ansible<7.0.0+dfsg-1
7.0.0+dfsg-1
debian/ansible<7.0.0+dfsg-1
7.0.0+dfsg-1
debian/ansible<7.0.0+dfsg-1
7.0.0+dfsg-1
debian/ansible
2.7.7+dfsg-1+deb10u22.10.7+merged+base+2.10.17+dfsg-0+deb11u17.0.0+dfsg-1
ubuntu/ansible<2.5.1+dfsg-1ubuntu0.1+esm2
2.5.1+dfsg-1ubuntu0.1+esm2
ubuntu/ansible<2.9.6+dfsg-1ubuntu0.1~esm2
2.9.6+dfsg-1ubuntu0.1~esm2
ubuntu/ansible-core*
ubuntu/ansible<2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4
2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4
ubuntu/ansible-core*
ubuntu/ansible-core*
ubuntu/ansible-core*
ubuntu/ansible-core*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 7.0.0
  2. Upgrade

    Upgrade debian/ansible to a version that resolves this vulnerability.

    Fixed in 7.0.0+dfsg-1
  3. Upgrade

    Upgrade debian/ansible to a version that resolves this vulnerability.

    Fixed in 2.7.7+dfsg-1+deb10u2Fixed in 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1Fixed in 7.0.0+dfsg-1
  4. Upgrade

    Upgrade ubuntu/ansible to a version that resolves this vulnerability.

    Fixed in 2.5.1+dfsg-1ubuntu0.1+esm2
  5. Upgrade

    Upgrade ubuntu/ansible to a version that resolves this vulnerability.

    Fixed in 2.9.6+dfsg-1ubuntu0.1~esm2
  6. Upgrade

    Upgrade ubuntu/ansible to a version that resolves this vulnerability.

    Fixed in 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4

Event History

Oct 25, 2022
Data Sourced
via Red Hat·06:43 PM
DescriptionSeverityAffected Software
Oct 28, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
DescriptionWeakness
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Advisory Published
07:00 PM
Nov 1, 2022
Data Sourced
06:47 PM
SeverityAffected Software
Dec 28, 2023
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Updated
07:15 PM
Affected Software
Jan 6, 2024
Advisory Published
05:06 AM
Data Sourced
via GitHub·05:06 AM
DescriptionSeverityWeaknessAffected Software
Aug 3, 2024
Data Sourced
via MITRE·01:14 AM
DescriptionWeakness
Aug 20, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Jun 17, 2026
Updated
via NVD·05:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-3697?

CVE-2022-3697 is a vulnerability found in Ansible in the amazon.aws collection when using the `tower_callback` parameter from the `amazon.aws.ec2_instance` module.

2

What is the severity of CVE-2022-3697?

CVE-2022-3697 has a severity level of high.

3

How does CVE-2022-3697 affect Ansible?

CVE-2022-3697 affects Ansible when using the `tower_callback` parameter from the `amazon.aws.ec2_instance` module.

4

What is the remedy for CVE-2022-3697?

The remedy for CVE-2022-3697 is to upgrade to Ansible version 7.0.0 or newer.

5

Where can I find more information about CVE-2022-3697?

More information about CVE-2022-3697 can be found at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-3697), [GitHub - Ansible Collections](https://github.com/ansible-collections/amazon.aws/pull/1199), [GitHub - Ansible](https://github.com/ansible/ansible/pull/35749).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203