{"id":"CVE-2023-5115","aliases":["CVE-2023-5115","GHSA-jpvw-p8pr-9g2x","PYSEC-2026-1120"],"related":[],"kind":"vulnerability","state":"published","title":"Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe un ataque de path traversal absoluto en la plataforma de automatización Ansible. Esta falla permite a un atacante crear un rol de Ansible malicioso y hacer que la víctima ejecute el rol. Se puede utilizar un enlace simbólico para sobrescribir un archivo fuera de la ruta de extracción.","source":"nvd"}],"published":"2023-12-18T13:43:07.791Z","modified":"2026-11-26T17:11:22.971Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-36"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:2.14.11-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.3::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.14.11-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.3 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.3::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el8ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 8","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:2.15.5-1.el9ap","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.4 for RHEL 9","package":"ansible-core","cpe":"cpe:/a:redhat:ansible_automation_platform:2.4::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 1.2","package":"ansible","cpe":"cpe:/a:redhat:ansible_automation_platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.5.0"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.2"},{"status":"affected","version":"2.3"},{"status":"affected","version":"2.4"}],"vendor":"redhat","product":"ansible_automation_platform","cpe":"cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.1"},{"status":"affected","version":"1.2"}],"vendor":"redhat","product":"ansible_inside","cpe":"cpe:2.3:a:redhat:ansible_inside:1.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.0"},{"status":"affected","version":"1.1"}],"vendor":"redhat","product":"ansible_developer","cpe":"cpe:2.3:a:redhat:ansible_developer:1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.5.0"}],"ecosystem":"PyPI","package":"ansible","purl":"pkg:pypi/ansible","source":"pysec"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:5701","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5758","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-5115","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2233810","tags":["issue-tracking","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5115","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible/commit/1e930684bc0a76ec3d094cd326738ad26416541c","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible-community/ansible-build-data/blob/16d36538b96c65d9e0e28d89781361b69857ac0e/8/CHANGELOG-v8.rst#L221","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansible/ansible","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansible","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-jpvw-p8pr-9g2x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-5115","url":"https://www.cve.org/CVERecord?id=CVE-2023-5115","licence":"CVE Terms of Use","modified":"2026-11-26T17:11:22.971Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jpvw-p8pr-9g2x","url":"https://github.com/advisories/GHSA-jpvw-p8pr-9g2x","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:34.211Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-5115","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5115","licence":"Public domain","modified":"2026-11-07T14:16:57.593Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1120","url":"https://osv.dev/vulnerability/PYSEC-2026-1120","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:24.012Z"}],"updatedAt":"2026-11-26T17:17:13.437Z","epss":{"score":0.01013,"percentile":0.64237,"date":"2026-12-02T12:00:21.000Z"}}