CVE-2023-5115
MEDIUM 6.3CVSS 3.1Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files
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.
- Published
- 18 Dec 2023
- Last modified
- 26 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-36
- Also known as
- GHSA-jpvw-p8pr-9g2xPYSEC-2026-1120
- Sources
- NVDJSONCVE ListJSONOSV GHSA-jpvw-p8pr-9g2xJSONOSV PYSEC-2026-1120JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| CVE List | redhat | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:* |
= 1.2 | |
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:2.3:*:*:*:*:*:*:* |
= 2.3 | |
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:2.4:*:*:*:*:*:*:* |
= 2.4 | |
| NVD | redhat | ansible_insidecpe:2.3:a:redhat:ansible_inside:1.1:*:*:*:*:*:*:* |
= 1.1 | |
| NVD | redhat | ansible_insidecpe:2.3:a:redhat:ansible_inside:1.2:*:*:*:*:*:*:* |
= 1.2 | |
| NVD | redhat | ansible_developercpe:2.3:a:redhat:ansible_developer:1.0:*:*:*:*:*:*:* |
= 1.0 | |
| NVD | redhat | ansible_developercpe:2.3:a:redhat:ansible_developer:1.1:*:*:*:*:*:*:* |
= 1.1 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | ansible-corecpe:/a:redhat:ansible_automation_platform:2.3::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | ansible-corecpe:/a:redhat:ansible_automation_platform:2.3::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | ansible-corecpe:/a:redhat:ansible_automation_platform:2.4::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | ansible-corecpe:/a:redhat:ansible_automation_platform:2.4::el8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | ansiblecpe:/a:redhat:ansible_automation_platform |
all versions | |
| OSV | PyPI | ansible | < 8.5.0 | 8.5.0 |
References
- https://access.redhat.com/errata/RHSA-2023:5701 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT, WEB
- https://access.redhat.com/errata/RHSA-2023:5758 · Vendor Advisory, vendor-advisory, x_refsource_REDHAT, WEB
- https://access.redhat.com/security/cve/CVE-2023-5115 · Vendor Advisory, vdb-entry, x_refsource_REDHAT, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2233810 · Issue Tracking, issue-tracking, x_refsource_REDHAT, WEB
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html · x_transferred, 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
History
- 26 Nov 2026 18:37 UTC · NVD: updated (other details)
- 26 Nov 2026 17:37 UTC · CVE List: first stored (published 18 Dec 2023)
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 18 Dec 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Dec 2023)