PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service
影響: composer:phpoffice/phpspreadsheet >= 4.0.0, <= 5.9.0 → 5.10.0, composer:phpoffice/phpspreadsheet >= 3.3.0, <= 3.10.7 → 3.10.8, composer:phpoffice/phpspreadsheet >= 2.2.0, <= 2.4.7 → 2.4.8, composer:phpoffice/phpspreadsheet >= 2.0.0, <= 2.1.18 → 2.1.19, composer:phpoffice/phpspreadsheet <= 1.30.6 → 1.30.7
PhpSpreadsheet's XmlScanner::scan() uses a regex pattern that only accounts for NULL byte (0x00) interleaving when detecting ' . "\n" . $doctype . ' sst [' . "\n" . ' ' . "\n" . ']>' . "\n" . ' ' . ' ' . $refs . ' '; // Build minimal XLSX $xlsx = new ZipArchive(); $xlsx->open('poc.xlsx', ZipArchive::CREATE | ZipArchive::OVERWRITE); $xlsx->addFromString('[Content_Types].xml', ' ' .' ' .' ' .' ' .' ' .' ' .' '); $xlsx->addFromString('_rels/.rels', ' ' .' ' .' '); $xlsx->addFromString('xl/workbook…
| CVE | CVE-2026-108358 |
|---|---|
| 来源 | GitHub Advisory Database |
| 获取时间 | 2026/10/28 06:03 |
| 数据 | Markdown JSON |
2026/10/28 00:38,GitHub Advisory Database 发布了“PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service”(类型:漏洞公告)。严重程度为“高危”(high)。相关技术:PHP。CVE:CVE-2026-108358。