Ansible-coreのansible-galaxyに脆弱性、ロール名経由で任意のディレクトリにファイルを書き込まれるおそれ
Summary
Ansible-coreのansible-galaxyでロールをインストールする際、ロール名の検証が不十分なためパス・トラバーサルの脆弱性が見つかりました。悪意あるロールを取り込むと、想定したロールディレクトリの外にファイルを書き込まれたり、--force指定時には既存のディレクトリが削除されたりするおそれがあります。影響は実行ユーザーのファイル権限の範囲に限られます。修正版の有無は公表されていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Ansible-coreのansible-galaxyでロールをインストールする際、ロール名の検証が不十分なためパス・トラバーサルの脆弱性が見つかりました。悪意あるロールを取り込むと、想定したロールディレクトリの外にファイルを書き込まれたり、--force指定時には既存のディレクトリが削除されたりするおそれがあります。影響は実行ユーザーのファイル権限の範囲に限られます。修正版の有無は公表されていないため、最新の情報を確認してください。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-105929 ansible-core No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-105929 ansible-core, ansible No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web secalert@redhat.com
- web secalert@redhat.com
- web nvd.nist.gov
- web github.com