{"answers":{"affected":"3 open source packages ship an affected version, including ansible-core. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-4237 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2023-4237 is a high-severity vulnerability in Red Hat Ansible Automation Platform 2.4 for RHEL 8, published on 4 Oct 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-4237 and fix it if it is affected.\n\nWhat it is: CVE-2023-4237 is a high-severity vulnerability in Red Hat Ansible Automation Platform 2.4 for RHEL 8, published on 4 Oct 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-4237 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ansible-core (PyPI): affected from 2.8.0 up to 2.15.2; no fix listed\n- ansible-core (PyPI): affected from 2.8.0 up to 2.15.2; no fix listed\n- ansible-core (PyPI): affected from 2.8.0 up to 2.15.2; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-4237/ (Markdown: https://insights.sbomify.com/CVE-2023-4237/index.md)","id":"CVE-2023-4237","markdown":"https://insights.sbomify.com/CVE-2023-4237/index.md","name":"CVE-2023-4237","record":{"aliases":["DEBIAN-CVE-2023-4237","GHSA-ww3m-ffrm-qvqv","PYSEC-2026-1125","UBUNTU-CVE-2023-4237"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ansible Automation Platform","requires_auth":"low_privilege","summary":"The Ansible ec2_key module exposes private keys in standard output, allowing attackers to retrieve sensitive credentials from log files.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ansible_automation_platform","vendor":"redhat"},{"product":"ansible_collection","vendor":"redhat"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-497","name":"Exposure of Sensitive System Information to an Unauthorized Control Sphere"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Platform: ec2_key module prints out the private key directly to the standard output","id":"CVE-2023-4237","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Prevent files / folders access \u003c 2.5.2 - Admin+ Arbitrary File Upload","id":"CVE-2023-4238"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["2.8.0"],"last_affected":["2.15.2"],"package":"ansible-core","purl":null,"source":"GHSA-ww3m-ffrm-qvqv"},{"ecosystem":"PyPI","fixed":[],"introduced":["2.8.0"],"last_affected":["2.15.2"],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"GHSA-ww3m-ffrm-qvqv"},{"ecosystem":"PyPI","fixed":[],"introduced":["2.8.0"],"last_affected":["2.15.2"],"package":"ansible-core","purl":"pkg:pypi/ansible-core","source":"PYSEC-2026-1125"}],"prev":{"headline":"named may terminate unexpectedly under high DNS-over-TLS query load","id":"CVE-2023-4236"},"products":["Red Hat Ansible Automation Platform 2.4 for RHEL 8","Red Hat Ansible Automation Platform 2.4 for RHEL 9"],"published":"2023-10-04","related":[{"cvss_score":8.8,"headline":"Privilege escalation in ansible-tower","id":"CVE-2021-4112","kev_date_added":null,"published":"2022-08-25"},{"cvss_score":7.1,"headline":"Improper Input Validation and Command Injection in Ansible","id":"CVE-2021-3583","kev_date_added":null,"published":"2021-09-22"},{"cvss_score":6.7,"headline":"Event-driven-ansible: event stream test mode exposes sensitive headers in aap eda","id":"CVE-2025-9907","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":6.7,"headline":"Event-driven-ansible: sensitive internal headers disclosure in aap eda event streams","id":"CVE-2025-9908","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":6.7,"headline":"Aap-gateway: improper path validation in gateway allows credential exfiltration","id":"CVE-2025-9909","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":6.5,"headline":"Privilege escalation in Red Hat Ansible Automation Platform","id":"CVE-2022-2568","kev_date_added":null,"published":"2022-08-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-02-25","vendors":["Red Hat"]},"summary":"The Ansible ec2_key module exposes private keys in standard output, allowing attackers to retrieve sensitive credentials from log files.","url":"https://insights.sbomify.com/CVE-2023-4237/"}