Ansible may expose private key
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | ansible-core | >= 2.8.0, <= 2.15.2 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-4237
- https://access.redhat.com/errata/RHBA-2023:5653
- https://access.redhat.com/errata/RHBA-2023:5666
- https://access.redhat.com/security/cve/CVE-2023-4237
- https://bugzilla.redhat.com/show_bug.cgi?id=2229979
- https://github.com/ansible/ansible
- https://pypi.org/project/ansible-core
- https://github.com/advisories/GHSA-ww3m-ffrm-qvqv
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-497- Platform
- Python (PyPI)
- Package
ansible-core- Disclosed
- 04.10.2023
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1125 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-ww3m-ffrm-qvqv - CC BY 4.0
Vulnerability history: ansible-core
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 10.2023 06.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 4
- Low 1
Disclosures per year
- 2023: 2
- 2024: 4
- 2025: 0
- 2026: 1
-
Ansible may expose private key this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.