Ansible-core: ansible-galaxy role install path traversal via unvalidated role name allows file writes and directory deletion outside the roles directory
Red Hat / Migration Toolkit for Applications 8、Migration Toolkit for Virtualization、OpenShift Service Mesh 3、Red Hat Advanced Cluster Management for Kubernetes 2、Red Hat Ansible Automation Platform 2、Red Hat Ansible Automation Platform Ansible Core 2 +13
CVE 记录列出的受影响产品:Red Hat · Red Hat Ansible Automation Platform 2、Red Hat · Red Hat Ansible Automation Platform Ansible Core 2nday 产品登记表中 Ansible 的产品类型
当前阶段
DIS
披露
CVSS
8.1 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
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.