WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›Laravel›CVE-2026-84374

重要 CVSS 7.5 Laravel CVE-2026-84374 公表 2026年9月1日

Laravel Excelに任意ファイル上書きの脆弱性

Laravel — CVE-2026-84374

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

Laravel Excelで、保存先の指定を悪用されると、既存ファイルを上書きされるおそれがあります。条件次第では、PHPファイルを書き換えられ、深刻な被害につながります。

放置するとどうなるか

サイトの改ざんや、サーバー上で不正な処理を実行される可能性があります。業務データの破壊にもつながります。

今すぐやること

3.1.70に更新してください。ファイル名や保存先を利用者入力で決めている場合は、必ず制限を入れ、保守会社に確認しましょう。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに Laravel が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「From 3.1.8 until 3.1.70」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
Laravel Excel provides supercharged Excel exports and imports in Laravel. From 3.1.8 until 3.1.70, in src/Files/Disk.php the Maatwebsite\Excel\Files\Disk::copy() method resolves the caller-controlled $destination supplied through Excel::store(), $export->store(), or storeExcel() against the process working directory with realpath() instead of the configured filesystem disk. If the path names an existing writable file, Disk::copy() opens it with fopen() in rb+ mode and uses stream_copy_to_stream(), bypassing Flysystem path confinement and allowing an attacker whose application input controls the export path to overwrite arbitrary existing files with export content. The rb+ behavior creates a non-truncating overwrite and trailing bytes when the new export is shorter, and overwriting an executable PHP file can lead to remote code execution. This issue is fixed in version 3.1.70.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →