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
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.
Severity
CVSS 3.1
8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
CWE
CWE-22Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
Show the promptExplain CVE-2026-105929 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-105929?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-105929?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-105929 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.
Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
red hat:migration toolkit for applications 8
red hat:migration toolkit for virtualization
red hat:openshift service mesh 3
red hat:red hat advanced cluster management for kubernetes 2
red hat:red hat ansible automation platform 2
red hat:red hat ansible automation platform ansible core 2
red hat:red hat certification program for red hat enterprise linux 9
red hat:red hat discovery 2
red hat:red hat enterprise linux 10
red hat:red hat enterprise linux 8
red hat:red hat enterprise linux 9
red hat:red hat openshift container platform 4
red hat:red hat openshift container platform 5
red hat:red hat openstack platform 17.1
red hat:red hat openstack platform 18.0
red hat:red hat satellite 6
red hat:red hat update infrastructure 5
red hat:self-service automation portal 2
red hat:service telemetry framework 1.5
Linux distributions
Distribution
Release
Package
Fixed in
Advisory
openSUSE
Tumbleweed
ansible-core
2.21.6-1.1
openSUSE-SU-2026:12448-1
openSUSE
Tumbleweed
ansible-core-2.19
2.19.15-1.1
openSUSE-SU-2026:12449-1
openSUSE
Tumbleweed
ansible-core-2.20
2.20.11-1.1
openSUSE-SU-2026:12450-1
openSUSE
Tumbleweed
ansible-core-2.21
2.21.6-1.1
openSUSE-SU-2026:12451-1
From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.
Attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
CAPEC-126 Path Traversal Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.