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

Summary

CVECVE-2026-105929
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-18 02:17:38 UTC
Updated2026-11-18 02:17:38 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 8.1 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Problem Types: CWE-22 | CWE-22 Improper Limitation of a Pathname to a Restricted Directory


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
3.1CNACVSS8.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Migration Toolkit For Applications 8 Not specified Not specified
CNA Red Hat Migration Toolkit For Virtualization Not specified Not specified
CNA Red Hat OpenShift Service Mesh 3 Not specified Not specified
CNA Red Hat Red Hat Advanced Cluster Management For Kubernetes 2 Not specified Not specified
CNA Red Hat Red Hat Advanced Cluster Management For Kubernetes 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform Ansible Core 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform Ansible Core 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform Ansible Core 2 Not specified Not specified
CNA Red Hat Red Hat Ansible Automation Platform Ansible Core 2 Not specified Not specified
CNA Red Hat Red Hat Certification Program For Red Hat Enterprise Linux 9 Not specified Not specified
CNA Red Hat Red Hat Discovery 2 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 10 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 8 Not specified Not specified
CNA Red Hat Red Hat Enterprise Linux 9 Not specified Not specified
CNA Red Hat Red Hat OpenShift Container Platform 4 Not specified Not specified
CNA Red Hat Red Hat OpenShift Container Platform 5 Not specified Not specified
CNA Red Hat Red Hat OpenStack Platform 17.1 Not specified Not specified
CNA Red Hat Red Hat OpenStack Platform 17.1 Not specified Not specified
CNA Red Hat Red Hat OpenStack Platform 17.1 Not specified Not specified
CNA Red Hat Red Hat OpenStack Platform 18.0 Not specified Not specified
CNA Red Hat Red Hat Satellite 6 Not specified Not specified
CNA Red Hat Red Hat Update Infrastructure 5 Not specified Not specified
CNA Red Hat Red Hat Update Infrastructure 5 Not specified Not specified
CNA Red Hat Red Hat Update Infrastructure 5 Not specified Not specified
CNA Red Hat Red Hat Update Infrastructure 5 Not specified Not specified
CNA Red Hat Self-service Automation Portal 2 Not specified Not specified
CNA Red Hat Service Telemetry Framework 1.5 Not specified Not specified
CNA Red Hat Service Telemetry Framework 1.5 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/security/cve/CVE-2026-105929 [email protected] access.redhat.com
bugzilla.redhat.com/show_bug.cgi [email protected] bugzilla.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2026-10-04T00:00:00.000ZReported to Red Hat.
CNA2026-11-17T14:24:09.957ZMade public.

Workarounds

CNA: Install roles and collections only from trusted sources. Before installing a role, review its meta/requirements.yml (including transitive dependencies) for any "name" value containing "../" or an absolute path. Avoid using "ansible-galaxy role install --force" against untrusted content.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report