{"id":"CVE-2023-4237","aliases":["DEBIAN-CVE-2023-4237","EUVD-2023-2834","GHSA-ww3m-ffrm-qvqv","PYSEC-2026-1125","UBUNTU-CVE-2023-4237"],"status":"published","title":"Platform: ec2_key module prints out the private key directly to the standard output","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.","severity":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00252,"percentile":0.1673,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-497"],"published":"2023-10-04T14:23:20Z","modified":"2026-10-28T02:31:08Z","fixes":[{"ecosystem":"Debian:12","package":"ansible","fixed_in":["7.7.0+dfsg-3+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ansible","fixed_in":["9.4.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ansible","fixed_in":["9.4.0+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"last_affected":"2.15.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.7.0+dfsg-3+deb12u1"}]}],"versions":["7.3.0+dfsg-1","7.7.0+dfsg-1","7.7.0+dfsg-2","7.7.0+dfsg-3"]},{"source":"osv","ecosystem":"Debian:13","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.4.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.4.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"last_affected":"2.15.2"}]}],"versions":["2.11.0","2.11.0b1","2.11.0b2","2.11.0b3","2.11.0b4","2.11.0rc1","2.11.0rc2","2.11.1","2.11.10","2.11.10rc1","2.11.11","2.11.11rc1","2.11.12","2.11.12rc1","2.11.1rc1","2.11.2","2.11.2rc1","2.11.3","2.11.3rc1","2.11.4","2.11.4rc1","2.11.5","2.11.5rc1","2.11.6","2.11.6rc1","2.11.7","2.11.7rc1","2.11.8","2.11.8rc1","2.11.9","2.11.9rc1","2.12.0","2.12.0b1","2.12.0b2","2.12.0rc1","2.12.1","2.12.10","2.12.10rc1","2.12.1rc1","2.12.2","2.12.2rc1","2.12.3","2.12.3rc1","2.12.4","2.12.4rc1","2.12.5","2.12.5rc1","2.12.6","2.12.6rc1","2.12.7","2.12.7rc1","2.12.8","2.12.8rc1","2.12.9","2.12.9rc1","2.13.0","2.13.0b0","2.13.0b1","2.13.0rc1","2.13.1","2.13.10","2.13.10rc1","2.13.11","2.13.11rc1","2.13.12","2.13.12rc1","2.13.13","2.13.13rc1","2.13.1rc1","2.13.2","2.13.2rc1","2.13.3","2.13.3rc1","2.13.4","2.13.4rc1","2.13.5","2.13.5rc1","2.13.6","2.13.6rc1","2.13.7","2.13.7rc1","2.13.8","2.13.8rc1","2.13.9","2.13.9rc1","2.14.0","2.14.0b1","2.14.0b2","2.14.0b3","2.14.0rc1","2.14.0rc1.post0","2.14.0rc2","2.14.1","2.14.10","2.14.10rc1","2.14.11","2.14.11rc1","2.14.12","2.14.12rc1","2.14.13","2.14.14","2.14.14rc1","2.14.15","2.14.15rc1","2.14.16","2.14.16rc1","2.14.17","2.14.17rc1","2.14.18","2.14.18rc1","2.14.1rc1","2.14.2","2.14.2rc1","2.14.3","2.14.3rc1","2.14.4","2.14.4rc1","2.14.5","2.14.5rc1","2.14.6","2.14.6rc1","2.14.7","2.14.7rc1","2.14.8","2.14.8rc1","2.14.9","2.14.9rc1","2.15.0","2.15.0b1","2.15.0b2","2.15.0b3","2.15.0rc1","2.15.0rc2","2.15.1","2.15.1rc1","2.15.2","2.15.2rc1"]},{"source":"osv","ecosystem":"PyPI","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"last_affected":"2.15.2"}]}],"versions":["2.11.0","2.11.0b1","2.11.0b2","2.11.0b3","2.11.0b4","2.11.0rc1","2.11.0rc2","2.11.1","2.11.10","2.11.10rc1","2.11.11","2.11.11rc1","2.11.12","2.11.12rc1","2.11.1rc1","2.11.2","2.11.2rc1","2.11.3","2.11.3rc1","2.11.4","2.11.4rc1","2.11.5","2.11.5rc1","2.11.6","2.11.6rc1","2.11.7","2.11.7rc1","2.11.8","2.11.8rc1","2.11.9","2.11.9rc1","2.12.0","2.12.0b1","2.12.0b2","2.12.0rc1","2.12.1","2.12.10","2.12.10rc1","2.12.1rc1","2.12.2","2.12.2rc1","2.12.3","2.12.3rc1","2.12.4","2.12.4rc1","2.12.5","2.12.5rc1","2.12.6","2.12.6rc1","2.12.7","2.12.7rc1","2.12.8","2.12.8rc1","2.12.9","2.12.9rc1","2.13.0","2.13.0b0","2.13.0b1","2.13.0rc1","2.13.1","2.13.10","2.13.10rc1","2.13.11","2.13.11rc1","2.13.12","2.13.12rc1","2.13.13","2.13.13rc1","2.13.1rc1","2.13.2","2.13.2rc1","2.13.3","2.13.3rc1","2.13.4","2.13.4rc1","2.13.5","2.13.5rc1","2.13.6","2.13.6rc1","2.13.7","2.13.7rc1","2.13.8","2.13.8rc1","2.13.9","2.13.9rc1","2.14.0","2.14.0b1","2.14.0b2","2.14.0b3","2.14.0rc1","2.14.0rc1.post0","2.14.0rc2","2.14.1","2.14.10","2.14.10rc1","2.14.11","2.14.11rc1","2.14.12","2.14.12rc1","2.14.13","2.14.14","2.14.14rc1","2.14.15","2.14.15rc1","2.14.16","2.14.16rc1","2.14.17","2.14.17rc1","2.14.18","2.14.18rc1","2.14.1rc1","2.14.2","2.14.2rc1","2.14.3","2.14.3rc1","2.14.4","2.14.4rc1","2.14.5","2.14.5rc1","2.14.6","2.14.6rc1","2.14.7","2.14.7rc1","2.14.8","2.14.8rc1","2.14.9","2.14.9rc1","2.15.0","2.15.0b1","2.15.0b2","2.15.0b3","2.15.0rc1","2.15.0rc2","2.15.1","2.15.1rc1","2.15.2","2.15.2rc1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1+dfsg-1","1.3.4+dfsg-1","1.4.0+dfsg-1","1.4.1+dfsg-1","1.4.3+dfsg-1","1.4.4+dfsg-1","1.5.4+dfsg-1","1.5.4+dfsg-1ubuntu0.1~esm1","1.5.4+dfsg-1ubuntu0.1~esm2","1.5.4+dfsg-1ubuntu0.1~esm3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.2+dfsg-2","1.9.4-1","2.0.0.2-2","2.0.0.2-2ubuntu1","2.0.0.2-2ubuntu1.1","2.0.0.2-2ubuntu1.2","2.0.0.2-2ubuntu1.3","2.0.0.2-2ubuntu1.3+esm1","2.0.0.2-2ubuntu1.3+esm2","2.0.0.2-2ubuntu1.3+esm3","2.0.0.2-2ubuntu1.3+esm4","2.0.0.2-2ubuntu1.3+esm5","2.0.0.2-2ubuntu1.3+esm6"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.1.0+dfsg-2","2.5.0+dfsg-1","2.5.1+dfsg-1","2.5.1+dfsg-1ubuntu0.1","2.5.1+dfsg-1ubuntu0.1+esm1","2.5.1+dfsg-1ubuntu0.1+esm2","2.5.1+dfsg-1ubuntu0.1+esm3","2.5.1+dfsg-1ubuntu0.1+esm4","2.5.1+dfsg-1ubuntu0.1+esm5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.3+dfsg-1","2.8.6+dfsg-1","2.9.2+dfsg-1","2.9.4+dfsg-1","2.9.6+dfsg-1","2.9.6+dfsg-1ubuntu0.1~esm1","2.9.6+dfsg-1ubuntu0.1~esm2","2.9.6+dfsg-1ubuntu0.1~esm3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.12.0-1","2.12.0-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.10.7+merged+base+2.10.8+dfsg-1","2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1","2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.7.0+dfsg-1","7.7.0+dfsg-3","9.2.0+dfsg-0ubuntu4","9.2.0+dfsg-0ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.9-2","2.14.11-1","2.14.11-2","2.14.13-1","2.16.3-0ubuntu1","2.16.3-0ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.2.0+dfsg-1","12.0.0~a2+dfsg-1","12.0.0~a4+dfsg-1","12.0.0~a6+dfsg-1","12.0.0~b1+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.18.1-4ubuntu1","2.19.0~beta4-1ubuntu1","2.19.0-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["13.1.0+dfsg-1ubuntu1","13.4.0+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.20.1-1","2.21.1~rc1-1","2.21.1~rc1-2","2.21.1~rc1-2ubuntu1","2.22.0~beta2-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"ansible","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["12.0.0~b1+dfsg-1","12.0.0+dfsg-1","12.2.0+dfsg-1","13.1.0+dfsg-1","13.1.0+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"ansible-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.19.0-1ubuntu1","2.19.4-1","2.20.1-1"]}],"products":[{"vendor":"red hat","product":"red hat ansible automation platform 2.4 for rhel 8"},{"vendor":"red hat","product":"red hat ansible automation platform 2.4 for rhel 9"},{"vendor":"redhat","product":"ansible_automation_platform"},{"vendor":"redhat","product":"ansible_collection"}],"references":[{"url":"https://access.redhat.com/errata/RHBA-2023:5653","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/errata/RHBA-2023:5666","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-4237","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2229979","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0002/","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4237","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ww3m-ffrm-qvqv","tags":["advisory"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","tags":["web"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4237.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-4237","tags":["advisory"]},{"url":"https://github.com/ansible/ansible","tags":["package"]},{"url":"https://pypi.org/project/ansible-core","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2023-4237","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-4237","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-4237","title":"Platform: ec2_key module prints out the private key directly to the standard output","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.","status":"published","published":"2023-10-04T14:23:20.71Z","modified":"2026-02-25T18:31:55.136Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-497"],"updated_at":"2026-11-02T14:35:30.116696Z"}],"euvd":[{"id":"EUVD-2023-2834","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.","status":"published","published":"2023-10-04T14:23:20Z","modified":"2026-02-25T18:31:55Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T19:48:28.530473Z"}],"ghsa":[{"id":"GHSA-ww3m-ffrm-qvqv","title":"Ansible may expose private key","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.","status":"published","published":"2023-10-04T15:30:35Z","modified":"2023-11-18T12:30:29Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-497"],"updated_at":"2026-11-02T14:37:22.040291Z"}],"nvd":[{"id":"CVE-2023-4237","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.","status":"published","published":"2023-10-04T15:15:12.643Z","modified":"2026-06-17T06:37:22.95Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-497"],"updated_at":"2026-11-02T14:08:35.022405Z"}],"osv":[{"id":"CVE-2023-4237","title":"Platform: ec2_key module prints out the private key directly to the standard output","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.","status":"published","published":"2023-10-04T14:23:20.71Z","modified":"2026-10-28T02:31:08.861922713Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-497"],"updated_at":"2026-11-02T15:44:33.792101Z"},{"id":"DEBIAN-CVE-2023-4237","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.","status":"published","published":"2023-10-04T15:15:12.643Z","modified":"2026-10-26T18:02:33.546627077Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:40.275853Z"},{"id":"GHSA-ww3m-ffrm-qvqv","title":"Ansible may expose private key","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.","status":"published","published":"2023-10-04T15:30:35Z","modified":"2026-09-10T03:50:08.699474239Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-497"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"PYSEC-2026-1125","title":"Ansible may expose private key","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.","status":"published","published":"2026-07-07T11:45:25.392586Z","modified":"2026-07-07T17:46:19.963322801Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:52:54.622769Z"},{"id":"UBUNTU-CVE-2023-4237","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.","status":"published","published":"2023-10-04T15:15:00Z","modified":"2026-10-17T12:56:42.115667814Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:22.741943Z"}]}}
