Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files
Summary
| CVE | CVE-2023-5115 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-12-18 14:15:10 UTC |
| Updated | 2026-11-07 14:16:57 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
Problem Types: CWE-36 | CWE-22 | CWE-36 Absolute Path Traversal
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| 3.1 | [email protected] | Secondary | 6.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
| 3.1 | CNA | CVSS | 6.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
LowIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Redhat | Ansible Automation Platform | 1.2 | All | All | All |
| Application | Redhat | Ansible Automation Platform | 2.3 | All | All | All |
| Application | Redhat | Ansible Automation Platform | 2.4 | All | All | All |
| Application | Redhat | Ansible Inside | 1.1 | All | All | All |
| Application | Redhat | Ansible Inside | 1.2 | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux | 9.0 | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2023:5758 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Vendor Advisory |
| lists.debian.org/debian-lts-announce/2023/12/msg00018.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| access.redhat.com/security/cve/CVE-2023-5115 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Vendor Advisory |
| access.redhat.com/errata/RHSA-2023:5701 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Vendor Advisory |
| bugzilla.redhat.com/show_bug.cgi | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2023-08-23T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-09-21T19:33:00.000Z | Made public. |
Legacy QID Mappings
- 284645 Fedora Security Update for ansible (FEDORA-2023-cdc7db366e)
- 284646 Fedora Security Update for ansible (FEDORA-2023-e5d4a632a5)
- 285224 Fedora Security Update for ansible (FEDORA-2023-389ed7a7e7)
- 296106 Oracle Solaris 11.4 Support Repository Update (SRU) 64.157.2 Missing (CPUOCT2023)
- 357125 Amazon Linux Security Advisory for ansible-core : ALAS2023-2024-505
- 6000405 Debian Security Update for ansible (DLA 3695-1)
- 996474 Python (Pip) Security Update for ansible (GHSA-jpvw-p8pr-9g2x)