脆弱性ウォッチ

新着 / 2026年11月26日 / CVE-2026-105929

ansible-core ansible-galaxy パストラバーサルの脆弱性

重要 8.1

掲載

何が問題か

ansible-core の ansible-galaxy によるロールインストール処理で、meta/requirements.yml に指定された role の name が検証されず、インストール先パスの構築に使われることが報告されています。"../" を含む name や絶対パスを指定すると、選択したロールディレクトリの外にパスが及ぶ可能性があります。影響を受ける具体的なバージョンは公表されていません。

悪用されると

悪意のあるロール配布者が細工したロールをインストールした場合、利用者の権限の範囲でロールディレクトリ外へファイルが書き込まれる可能性があります。--force 使用時は、外部の既存ロールディレクトリが削除され置き換えられる可能性があります。

取るべき対応

信頼できないロールや依存関係を含む requirements.yml からのインストールを避けてください。修正版の情報は公表されていないため、ベンダーの公式発表を確認してください。

AIが出典から要約し、数値を機械照合しています。

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v3.1)重要 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
実際の攻撃での悪用CISA KEVには未掲載
30日以内に悪用される確率(EPSS)0.5%(全体の上位 68.7%)
問題の種類CWE-22
CVE公開日2026-11-18

出典

公式の説明(英語の原文)

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.