# CVE-2023-5115: Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files

- Severity: Medium 6.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-02)
- Published: 2023-12-18T13:43:07.791Z
- Modified: 2026-11-26T17:11:22.971Z
- Also known as: GHSA-jpvw-p8pr-9g2x, PYSEC-2026-1120
- Weaknesses: CWE-22, CWE-36
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- ansible-core: no versions given (not affected: from 0:2.14.11-1.el8ap before *; from 0:2.14.11-1.el9ap before *; from 0:2.15.5-1.el8ap before *; from 0:2.15.5-1.el9ap before *)
- ansible: no versions given
- ansible (PyPI): before 8.5.0
- redhat ansible_automation_platform: 1.2; 2.3; 2.4
- redhat ansible_inside: 1.1; 1.2
- redhat ansible_developer: 1.0; 1.1
- debian debian_linux: 10.0

## Every score

- redhat: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:5701> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:5758> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-5115> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2233810> (issue-tracking, web)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5115> (advisory)
- <https://github.com/ansible/ansible/commit/1e930684bc0a76ec3d094cd326738ad26416541c> (web)
- <https://github.com/ansible-community/ansible-build-data/blob/16d36538b96c65d9e0e28d89781361b69857ac0e/8/CHANGELOG-v8.rst#L221> (web)
- <https://github.com/ansible/ansible> (package)
- <https://pypi.org/project/ansible> (package)
- <https://github.com/advisories/GHSA-jpvw-p8pr-9g2x> (advisory)

## Sources

- CVE List: [CVE-2023-5115](https://www.cve.org/CVERecord?id=CVE-2023-5115), CVE Terms of Use, modified 2026-11-26
- GitHub Advisory Database: [GHSA-jpvw-p8pr-9g2x](https://github.com/advisories/GHSA-jpvw-p8pr-9g2x), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-5115](https://nvd.nist.gov/vuln/detail/CVE-2023-5115), Public domain, modified 2026-11-07
- PyPA Advisory Database: [PYSEC-2026-1120](https://osv.dev/vulnerability/PYSEC-2026-1120), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-5115 · Whole record: https://cve.day/CVE-2023-5115.json · Rebuilt by cve.day 2026-11-26T17:17:13.437Z
