{"id":"CVE-2023-4237","aliases":["CVE-2023-4237","GHSA-ww3m-ffrm-qvqv","PYSEC-2026-1125"],"related":[],"kind":"vulnerability","state":"published","title":"Platform: ec2_key module prints out the private key directly to the standard output","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró una falla en la plataforma de automatización Ansible. Al crear un nuevo par de claves, el módulo ec2_key imprime la clave privada directamente en la salida estándar. Esta falla permite que un atacante obtenga esas claves de los archivos de registro, comprometiendo la confidencialidad, integridad y disponibilidad del sistema.","source":"nvd"}],"published":"2023-10-04T14:23:20.710Z","modified":"2026-09-10T03:50:08.699Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-497"],"affected":[{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1.0.0-423","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-automation-platform-24/ee-supported-rhel8","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1.0.0-424","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-automation-platform-24/ee-supported-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","lastAffected":"2.15.2"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.0"}],"vendor":"redhat","product":"ansible_automation_platform","cpe":"cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"ansible_collection","cpe":"cpe:2.3:a:redhat:ansible_collection:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","lastAffected":"2.15.2"}],"ecosystem":"PyPI","package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"pysec"}],"references":[{"url":"https://access.redhat.com/errata/RHBA-2023:5653","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/errata/RHBA-2023:5666","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-4237","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2229979","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0002/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4237","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansible-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-ww3m-ffrm-qvqv","tags":["advisory"],"sources":["pysec"]}],"credits":["Red Hat would like to thank Jill Rouleau (redhat) for reporting this issue."],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-4237","url":"https://www.cve.org/CVERecord?id=CVE-2023-4237","licence":"CVE Terms of Use","modified":"2026-02-25T18:31:55.136Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ww3m-ffrm-qvqv","url":"https://github.com/advisories/GHSA-ww3m-ffrm-qvqv","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:08.699Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-4237","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4237","licence":"Public domain","modified":"2026-06-17T06:37:22.950Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1125","url":"https://osv.dev/vulnerability/PYSEC-2026-1125","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:19.963Z"}],"updatedAt":"2026-11-25T22:58:28.455Z","epss":{"score":0.00252,"percentile":0.17714,"date":"2026-12-01T12:00:22.000Z"}}