Skip to content
Fencer Vulns
high 7.3

CVE-2023-4237 json

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

published 2023-10-04 3 y ago modified 2026-09-10 1 mo ago also GHSA-ww3m-ffrm-qvqv , PYSEC-2026-1125 , EUVD-2023-2834

cvss
7.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 16%
public exploits
0
none known

Summary

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.

Patch / fix

  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8 1.0.0-423
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9 1.0.0-424
  • ansible Debian 12 7.7.0+dfsg-3+deb12u1
  • ansible Debian 14, Debian 13 9.4.0+dfsg-1

debian advisories DEBIAN-CVE-2023-4237

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-4237 updated cvss 7.3

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

  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/ee-supported-rhel8 1.0.0-423 Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-automation-platform-24/ee-supported-rhel9 1.0.0-424
    fixed: vendor fix RHBA-2023:5666
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/hub-rhel8 4.7.3-8, ansible-automation-platform-24/ee-29-rhel8 1.0.0-350, ansible-automation-platform-24/hub-web-rhel8 4.7.3-9, ansible-automation-platform-24/controller-rhel8 4.4.5-8, ansible-automation-platform-24/hub-rhel8-operator 2.4-63, ansible-automation-platform-24/aap-cloud-ui-rhel8 1.0.2-9, +22 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-automation-platform-24/de-minimal-rhel9 1.0.0-118, ansible-automation-platform-24/ee-minimal-rhel9 1.0.0-440, ansible-automation-platform-24/de-supported-rhel9 1.0.0-126, ansible-automation-platform-24/ansible-builder-rhel9 3.0.0-102, ansible-automation-platform-24/ansible-python-base-rhel9 1.0.0-372, ansible-automation-platform-24/ansible-python-toolkit-rhel9 1.0.0-356
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
OSV 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi ansible-core
>=2.8.0, <=2.15.2
no fix listed

Affected products

  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9

Classification

Weakness
  • CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.