CVE-2023-4237
Ansible vulnerability analysis and mitigation

Overview

A vulnerability was identified in the Ansible Automation Platform's ec2_key module (CVE-2023-4237). The flaw involves the module printing private keys directly to standard output when creating new keypairs, which was discovered on August 8, 2023. This vulnerability affects various versions of Ansible Automation Platform 2.0 and Ansible collections (Red Hat Advisory, NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The issue stems from the ec2_key module's behavior of printing private key material directly to standard output during keypair creation operations, which subsequently gets captured in log files. This vulnerability has been classified under CWE-497 (Exposure of Sensitive System Information to an Unauthorized Control Sphere) (NVD).

Impact

The vulnerability's exploitation could lead to unauthorized access to private keys through log files, potentially compromising the system's confidentiality, integrity, and availability. This is particularly problematic in public CI workflow environments such as GitHub Actions, where logs might be accessible to unauthorized parties (Bugzilla).

Mitigation and workarounds

The vulnerability has been addressed in subsequent releases, with fixes available through Red Hat's errata updates RHBA-2023:5666 and RHBA-2023:5653. Organizations using affected versions should upgrade to the patched versions to mitigate this security risk (Red Hat Advisory, Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Ansible vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-1313MEDIUM6.5
  • GrafanaGrafana
  • mybatis-javadoc
NoYesMar 26, 2024
CVE-2024-9902MEDIUM6.3
  • AnsibleAnsible
  • ansible
NoYesNov 06, 2024
CVE-2025-14010MEDIUM5.5
  • AnsibleAnsible
  • ansible
NoYesDec 04, 2025
CVE-2024-11079MEDIUM5.5
  • AnsibleAnsible
  • ansible
NoYesNov 12, 2024
CVE-2024-8775MEDIUM5.5
  • AnsibleAnsible
  • ansible-core
NoYesSep 14, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management