Vulnerability · Published Oct 4, 2023 · Assigned by redhat

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

High 7.3

In plain English

A high-severity security flaw in Red Hat Ansible Automation Platform 2.4 for RHEL 8 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.3%top 83.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible7.7.0+dfsg-3+deb12u1DEBIAN-CVE-2023-4237
Debian:13ansible9.4.0+dfsg-1DEBIAN-CVE-2023-4237
Debian:14ansible9.4.0+dfsg-1DEBIAN-CVE-2023-4237
PyPIansible-coreno fix listedGHSA-ww3m-ffrm-qvqv
PyPIansible-coreno fix listedPYSEC-2026-1125
Ubuntu:24.04:LTSansibleno fix listedUBUNTU-CVE-2023-4237
Ubuntu:25.10ansibleno fix listedUBUNTU-CVE-2023-4237
Ubuntu:26.04:LTSansibleno fix listedUBUNTU-CVE-2023-4237
Ubuntu:26.10ansibleno fix listedUBUNTU-CVE-2023-4237
Ubuntu:22.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-4237
Ubuntu:24.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-4237
Ubuntu:25.10ansible-coreno fix listedUBUNTU-CVE-2023-4237
Ubuntu:26.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-4237
Ubuntu:26.10ansible-coreno fix listedUBUNTU-CVE-2023-4237

Affected products (as reported)

Weakness: CWE-497 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

References