製品・ソフトウェアに関する情報
PHPOfficeのPhpSpreadsheetにおける制限またはスロットリング無しのリソースの割り当てに関する脆弱性
Title PHPOfficeのPhpSpreadsheetにおける制限またはスロットリング無しのリソースの割り当てに関する脆弱性
Summary

PhpSpreadsheetはスプレッドシートファイルの読み書きのための純粋なPHPライブラリです。バージョン1.30.4、2.1.16、2.4.5、3.10.5、および5.7.0以前では、XLSXリーダーのColumnAndRowAttributes::readRowAttributes()メソッドがXML属性から行番号を読み取る際に、スプレッドシートの最大行制限(AddressRange::MAX_ROW = 1,048,576)に対する検証を行いません。攻撃者は最小限のXLSXファイル(約1.6KB)を作成し、row r="999999999"/要素を含めることで、cachedHighestRowを999,999,999に膨らませる可能性があります。その結果、その後の行の反復処理が約10億回のループを試みてCPUリソースを枯渇させる可能性があります。この脆弱性はバージョン1.30.4、2.1.16、2.4.5、3.10.5、および5.7.0で修正されています。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 12, 2026, midnight
Registration Date May 18, 2026, 12:15 p.m.
Last Update May 18, 2026, 12:15 p.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
PHPOffice
PhpSpreadsheet 1.30.4 未満
PhpSpreadsheet 2.0.0 以上 2.1.16 未満
PhpSpreadsheet 2.2.0 以上 2.4.5 未満
PhpSpreadsheet 3.3.0 以上 3.10.5 未満
PhpSpreadsheet 4.0.0 以上 5.7.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月18日]
  掲載
May 18, 2026, 12:15 p.m.

NVD Vulnerability Information
CVE-2026-40902
Summary

PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0, the XLSX reader's ColumnAndRowAttributes::readRowAttributes() method reads row numbers from XML attributes without validating them against the spreadsheet maximum row limit (AddressRange::MAX_ROW = 1,048,576). An attacker can craft a minimal XLSX file (~1.6KB) containing a <row r="999999999"/> element that inflates cachedHighestRow to 999,999,999, causing any subsequent row iteration to attempt ~1 billion loop cycles and exhaust CPU resources. This vulnerability is fixed in 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0.

Publication Date May 13, 2026, 7:16 a.m.
Registration Date May 15, 2026, 4:18 a.m.
Last Update May 14, 2026, 11:50 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 1.30.4
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 2.0.0 2.1.16
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 2.2.0 2.4.5
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 3.3.0 3.10.5
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 4.0.0 5.7.0
Related information, measures and tools
Common Vulnerabilities List