Archive::Tar projectのArchive::Tarにおけるリンク解釈に関する脆弱性
タイトル Archive::Tar projectのArchive::Tarにおけるリンク解釈に関する脆弱性
概要

Perl用のArchive::Tarバージョン3.08未満では、シンボリックリンクを抽出する際に、攻撃者が制御するターゲットが抽出ディレクトリの外部にある可能性があります。_make_special_file()は、tarヘッダーのlinknameをsymlink()に渡しますが、絶対パスや「..」セグメントに対する検証を行いません。通常のファイル抽出を保護するsecure-extractモードのチェックは、シンボリックリンクのターゲットには適用されません。そのため、抽出された名前を通じてファイルを開くと、攻撃者が選択したパスの読み取りまたは書き込みが可能になります。

想定される影響 ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年5月26日0:00
登録日 2026年5月29日11:20
最終更新日 2026年5月29日11:20
CVSS3.0 : 緊急
スコア 9.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
影響を受けるシステム
Archive::Tar project
Archive::Tar 3.08 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
変更履歴
No 変更内容 変更日
1 [2026年05月29日]
  掲載
2026年5月29日11:20

NVD脆弱性情報
CVE-2026-42496
概要

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
関連情報、対策とツール
共通脆弱性一覧
CVE-2026-42497
概要

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
関連情報、対策とツール
共通脆弱性一覧