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

7 affected componentsFixes available
pip/ansible>=2.5.0<7.0.0
7.0.0
debian/ansible<=2.10.7+merged+base+2.10.17+dfsg-0+deb11u1
7.7.0+dfsg-3+deb12u110.1.0+dfsg-1
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

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.7.0+dfsg-3+deb12u1Fixed in 10.1.0+dfsg-1

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
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
07:00 PM
Jun 25, 2024
Data Sourced
via Launchpad·02:44 PM
Description
Sep 13, 2024
Data Sourced
via Ubuntu·02:57 PM
RemedyDescriptionSeverityAffected Software
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
Updated
via Microsoft·11:11 PM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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