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

- Severity: High 7.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2023-10-04T14:23:20.710Z
- Modified: 2026-09-10T03:50:08.699Z
- Also known as: GHSA-ww3m-ffrm-qvqv, PYSEC-2026-1125
- Weaknesses: CWE-497
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8: no versions given
- ansible-automation-platform-24/ee-supported-rhel8: no versions given (not affected: from 1.0.0-423 before *)
- Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9: no versions given
- ansible-automation-platform-24/ee-supported-rhel9: no versions given (not affected: from 1.0.0-424 before *)
- ansible-core (PyPI): from 2.8.0 up to 2.15.2
- redhat ansible_automation_platform: 2.0
- redhat ansible_collection: no versions given

## Every score

- redhat: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHBA-2023:5653> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHBA-2023:5666> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-4237> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2229979> (issue-tracking, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20241025-0002/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-4237> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://pypi.org/project/ansible-core> (package)
- <https://github.com/advisories/GHSA-ww3m-ffrm-qvqv> (advisory)

## Sources

- CVE List: [CVE-2023-4237](https://www.cve.org/CVERecord?id=CVE-2023-4237), CVE Terms of Use, modified 2026-02-25
- GitHub Advisory Database: [GHSA-ww3m-ffrm-qvqv](https://github.com/advisories/GHSA-ww3m-ffrm-qvqv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-4237](https://nvd.nist.gov/vuln/detail/CVE-2023-4237), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1125](https://osv.dev/vulnerability/PYSEC-2026-1125), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-4237 · Whole record: https://cve.day/CVE-2023-4237.json · Rebuilt by cve.day 2026-11-25T22:58:28.455Z
