CVE-2026-105929

Ansible-core: ansible-galaxy role install path traversal via unvalidated role name allows file writes and directory deletion outside the roles directory

High published · updated

8.1
CVSS score out of 10 · NVD (redhat.com)

Description

A path traversal vulnerability (CWE-22) was found in ansible-core's ansible-galaxy role installation. An explicit role "name" taken from a role's meta/requirements.yml is used to construct the on-disk installation path without validating that the resulting destination stays within the selected roles directory. A name containing "../" escapes that directory, and an absolute name replaces it entirely. Because ansible-galaxy processes transitive dependencies from an installed role's meta/requirements.yml, a malicious role publisher can cause attacker-supplied files to be written outside the operator's chosen roles directory when the operator installs the role, and, when --force is used, can cause an existing role directory outside that path to be removed and replaced. The impact is bounded by the invoking user's filesystem permissions and requires the operator to install the attacker-influenced content.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
migration toolkit for applications 8 red hat —— CVE.org
migration toolkit for virtualization red hat —— CVE.org
openshift service mesh 3 red hat —— CVE.org
red hat advanced cluster management for kubernetes 2 red hat —— CVE.org
red hat ansible automation platform 2 red hat —— CVE.org
red hat ansible automation platform ansible core 2 red hat —— CVE.org
red hat certification program for red hat enterprise linux 9 red hat —— CVE.org
red hat discovery 2 red hat —— CVE.org
2 discovery —— CVE.org
red hat enterprise linux 10 red hat —— CVE.org
red hat enterprise linux 8 red hat —— CVE.org
red hat enterprise linux 9 red hat —— CVE.org
red hat openshift container platform 4 red hat —— CVE.org
red hat openshift container platform 5 red hat —— CVE.org
red hat openstack platform 17.1 red hat —— CVE.org
red hat openstack platform 18.0 red hat —— CVE.org
red hat satellite 6 red hat —— CVE.org
red hat update infrastructure 5 red hat —— CVE.org
5 rhui —— CVE.org
self-service automation portal 2 red hat —— CVE.org
service telemetry framework 1.5 red hat —— CVE.org

References