CVE-2023-4237: Platform: ec2_key module prints out the private key directly to the standard output

Published Aug 8, 2023
·
Updated

"When creating a new keypair the ec2key module prints out the private key directly to the standard output. I wasn't able to find any way to disable this behavior in the module's documentation. This makes it unusable in any kind of public CI workflow such as GHA."

Confirmed impacting all collection releases, and back to ansible-core 2.8 (did not test further back).

Other sources

A flaw was found in the Ansible Automation Platform. When creating a new keypair, the ec2key module prints out the private key directly to the standard output. This flaw allows an attacker to fetch those keys from the log files, compromising the system's confidentiality, integrity, and availability.

Affected Software

3 affected components
pip/ansible-core>=2.8.0<=2.15.2
redhat Ansible Automation Platform=2.0
redhat Ansible Collection

Event History

Aug 8, 2023
Data Sourced
via Red Hat·11:15 AM
DescriptionSeverityAffected Software
Oct 4, 2023
CVE Published
via MITRE·02:23 PM
Data Sourced
via MITRE·02:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
03:30 PM

Frequently Asked Questions

1

What is CVE-2023-4237?

CVE-2023-4237 is a vulnerability found in the Ansible Automation Platform that allows an attacker to fetch private keys from log files, compromising the system's confidentiality, integrity, and availability.

2

How does CVE-2023-4237 affect Redhat Ansible Automation Platform?

CVE-2023-4237 affects Redhat Ansible Automation Platform version 2.0.

3

How does CVE-2023-4237 affect Redhat Ansible Collection?

CVE-2023-4237 affects Redhat Ansible Collection.

4

How does CVE-2023-4237 affect pip/ansible-core?

CVE-2023-4237 affects pip/ansible-core versions 2.8.0 to 2.15.2.

5

What is the severity of CVE-2023-4237?

CVE-2023-4237 has a severity score of 7.8 (high).

6

How can I fix CVE-2023-4237?

To fix CVE-2023-4237, update to a patched version of the affected software.

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