CVE-2023-4237

Platform: ec2_key module prints out the private key directly to the standard output

Published Oct 4, 2023 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
A flaw was found in the Ansible Automation Platform. When creating a new keypair, the ec2_key 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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-2834 A flaw was found in the Ansible Automation Platform. When creating a new keypair, the ec2_key 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.
Github GHSA Github GHSA GHSA-ww3m-ffrm-qvqv Ansible may expose private key
Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Feb 25, 2026, 6:31 PM
Reserved
Aug 8, 2023, 11:15 AM
Status
Modified
Published
Oct 4, 2023, 3:15 PM
Modified
Jun 17, 2026, 6:37 AM
Severity
Moderate
Public date
Aug 8, 2023, 11:15 AM