CVE-2023-5115
Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files
MEDIUM 6.3
At a glance
- Source
- NVD
- EPSS
- EPSS 1.01 % · percentile 63 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-36 — Absolute Path Traversal
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | 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 | 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) |
Advisories
- GHSA-jpvw-p8pr-9g2x — Ansible symlink attack vulnerability
- PYSEC-2026-1120 — Ansible symlink attack vulnerability
European references
- ENISA EUVD · EUVD-2023-3236
- GCVE · GCVE-0-2023-5115
CERT-FR advisories
- CERTFR-2024-AVI-0958 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_automation_platform:2.3:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_automation_platform:2.4:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_inside:1.1:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_inside:1.2:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_developer:1.0:*:*:*:*:*:*:*cpe:2.3:a:redhat:ansible_developer:1.1:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| 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 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |