CVE-2023-5115
Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files
- Published
- Updated
- Reserved
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.0% · top 37% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.3.
Weakness
Affected products
Red Hat · Red Hat Ansible Automation Platform 2.3 for RHEL 8
- unaffected 0:2.14.11-1.el8ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.3 for RHEL 9
- unaffected 0:2.14.11-1.el9ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 8
- unaffected 0:2.15.5-1.el8ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 9
- unaffected 0:2.15.5-1.el9ap – < *
Red Hat · Red Hat Ansible Automation Platform 1.2
All versions: affected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIansibleGHSA-jpvw-p8pr-9g2x (opens in a new tab)
References (5)
- RHSA-2023:5701 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2023:5758 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://access.redhat.com/security/cve/CVE-2023-5115 (opens in a new tab)vdb-entryx_refsource_REDHATx_transferred
- RHBZ#2233810 (opens in a new tab)issue-trackingx_refsource_REDHATx_transferred
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jpvw-p8pr-9g2x (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-5115)Record last updated .