{"id":"CVE-2023-5115","published":"2023-12-18T13:43:07Z","modified":"2026-11-07T13:41:49Z","title":"Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files","vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 8","tier":"tail","description":{"text":"An absolute path traversal attack exists in the Ansible automation platform. This flaw allows an attacker to craft a malicious Ansible role and make the victim execute the role. A symlink can be used to overwrite a file outside of the extraction path.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01013,"percentile":0.64055,"provenance":"source"},"cwes":[{"id":"CWE-36","name":"Absolute Path Traversal"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:5701","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5758","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-5115","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2233810","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","tags":["x_transferred"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":12.81},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","versions":["all versions"]}],"affected":[{"ecosystem":"PyPI","package":"ansible","vulnerableRanges":["<8.5.0"],"patched":["8.5.0"],"from":["GHSA-jpvw-p8pr-9g2x","PYSEC-2026-1120"],"provenance":"source"}],"summary":{"text":"The flaw is an absolute path traversal in the Ansible automation platform, specifically in the ansible-galaxy component of Red Hat Ansible Automation Platform 2.3 for RHEL 8. An attacker who crafts a malicious Ansible role containing a symlink can cause a victim to execute that role, overwriting a file outside the extraction path, and this requires a low-privilege account on the target and user interaction to run the role.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:27Z"},"euvd":{"id":"EUVD-2023-3236","exploited":false,"provenance":"source"}}