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.

Severity (CVSS)

Base score8.1
SeverityHigh
VersionCVSS 3.1
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Provided byCNA

Weaknesses

  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

Affected products

VendorProductVersions
Red HatMigration Toolkit for Applications 8—
Red HatMigration Toolkit for Virtualization—
Red HatOpenShift Service Mesh 3—
Red HatRed Hat Advanced Cluster Management for Kubernetes 2—
Red HatRed Hat Advanced Cluster Management for Kubernetes 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform 2—
Red HatRed Hat Ansible Automation Platform Ansible Core 2—
Red HatRed Hat Ansible Automation Platform Ansible Core 2—
Red HatRed Hat Ansible Automation Platform Ansible Core 2—
Red HatRed Hat Ansible Automation Platform Ansible Core 2—
Red HatRed Hat Certification Program for Red Hat Enterprise Linux 9—
Red HatRed Hat Discovery 2—
Red HatRed Hat Enterprise Linux 10—
Red HatRed Hat Enterprise Linux 8—
Red HatRed Hat Enterprise Linux 9—
Red HatRed Hat OpenShift Container Platform 4—
Red HatRed Hat OpenShift Container Platform 5—
Red HatRed Hat OpenStack Platform 17.1—
Red HatRed Hat OpenStack Platform 17.1—
Red HatRed Hat OpenStack Platform 17.1—
Red HatRed Hat OpenStack Platform 18.0—
Red HatRed Hat Satellite 6—
Red HatRed Hat Update Infrastructure 5—
Red HatRed Hat Update Infrastructure 5—
Red HatRed Hat Update Infrastructure 5—
Red HatRed Hat Update Infrastructure 5—
Red HatSelf-service automation portal 2—
Red HatService Telemetry Framework 1.5—
Red HatService Telemetry Framework 1.5—

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 18 Nov 2026 08:08 UTC.