{"id":"CVE-2023-4237","aliases":["GHSA-ww3m-ffrm-qvqv","PYSEC-2026-1125"],"title":"Ansible may expose private key","summary":"Ansible may expose private key","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","vendor":"ansible-core","product":"ansible-core","ecosystem":"pip","affected":["ansible-core >= 2.8.0, <= 2.15.2"],"published":"2023-10-04","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:08.699474239Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-ww3m-ffrm-qvqv","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4237"},{"url":"https://access.redhat.com/errata/RHBA-2023:5653"},{"url":"https://access.redhat.com/errata/RHBA-2023:5666"},{"url":"https://access.redhat.com/security/cve/CVE-2023-4237"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2229979"},{"url":"https://github.com/ansible/ansible"}],"tags":["osv","pip"],"epss":0.00252,"epssPercentile":0.16872,"ingestedAt":"2026-07-08T18:25:53.916Z","slug":"CVE-2023-4237","body":"## Overview\n\nA 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.\n\n## Affected packages\n\n- `ansible-core >= 2.8.0, <= 2.15.2`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":36,"depthScoreParts":{"impact":35.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}