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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 7.7.0+dfsg-3+deb12u1 | DEBIAN-CVE-2023-4237 |
| Debian:13 | ansible | 9.4.0+dfsg-1 | DEBIAN-CVE-2023-4237 |
| Debian:14 | ansible | 9.4.0+dfsg-1 | DEBIAN-CVE-2023-4237 |
| PyPI | ansible-core | no fix listed | GHSA-ww3m-ffrm-qvqv |
| PyPI | ansible-core | no fix listed | PYSEC-2026-1125 |
| Ubuntu:24.04:LTS | ansible | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:25.10 | ansible | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:26.04:LTS | ansible | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:26.10 | ansible | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:22.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:24.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:25.10 | ansible-core | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:26.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2023-4237 |
| Ubuntu:26.10 | ansible-core | no fix listed | UBUNTU-CVE-2023-4237 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | see references |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | see references |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | see references |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | see references |
Weakness: CWE-497 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
References
- RHBA-2023:5653 vendor-advisory, x_refsource_REDHAT
- RHBA-2023:5666 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-4237 vdb-entry, x_refsource_REDHAT
- RHBZ#2229979 issue-tracking, x_refsource_REDHAT
- https://security.netapp.com/advisory/ntap-20241025-0002/