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).

Exploitability

The vulnerability requires local access with low attack complexity and low privileges to exploit. No user interaction is needed for exploitation, making it a significant security concern in environments where log files are accessible to potential attackers (NVD).

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-2026-16658CRITICAL9.9
  • Ansible logoAnsible
  • ansible-core
NoNoSep 02, 2026
CVE-2026-87874HIGH8.1
  • Ansible logoAnsible
  • ansible
NoNoSep 09, 2026
CVE-2026-87872MEDIUM6.8
  • Ansible logoAnsible
  • ansible
NoNoSep 09, 2026
CVE-2026-16566MEDIUM6.1
  • Ansible logoAnsible
  • ansible
NoNoJul 27, 2026
CVE-2026-80158MEDIUM5.5
  • Ansible logoAnsible
  • ansible-core
NoNoAug 26, 2026

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