| タイトル | Archive::Tar projectのArchive::Tarにおける複数の脆弱性 |
|---|---|
| 概要 | Perl用のArchive::Tarバージョン3.08より前のバージョンには、ハードリンクを抽出する際に、抽出ディレクトリの外部にある攻撃者が制御するパスへリンクを作成してしまう問題があります。_make_special_file()関数は、tarヘッダーのlinknameを絶対パスや「..」セグメントの検証なしにlink()に渡し、被害者ファイルのinodeを共有するハードリンクを作成します。その後、抽出された名前を通じて書き込みが行われることで被害者ファイルが変更されます。_extract_file()内の抽出後に行われるchmod、chown、utimeの処理(シンボリックリンクに対してのみ -l オプションで防御されます)は、抽出時に限りtarヘッダーのモード、所有者、タイムスタンプを共有inodeに適用します。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年5月29日11:20 |
| 最終更新日 | 2026年5月29日11:20 |
| CVSS3.0 : 重要 | |
| スコア | 7.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Archive::Tar project |
| Archive::Tar 3.08 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月29日] 掲載 |
2026年5月29日11:20 |
| 概要 | Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory. _make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target. A subsequent open through the extracted name reads or writes the attacker chosen path. |
|---|---|
| 公表日 | 2026年5月26日11:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月28日23:16 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:archive\:\:tar_project:archive\:\:tar:*:*:*:*:*:perl:*:* | 3.08 | ||||
| 概要 | Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory. _make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode. A subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone. |
|---|---|
| 公表日 | 2026年5月26日11:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月28日23:16 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:archive\:\:tar_project:archive\:\:tar:*:*:*:*:*:perl:*:* | 3.08 | ||||