{"id":"CVE-2026-59933","published":"2026-07-28T17:29:27Z","modified":"2026-07-28T17:57:30Z","title":"PhpSpreadsheet: XLS/OLE sector-chain self-loop causes memory exhaustion","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. In versions 4.0.0 through 5.8.0, 3.3.0 through 3.10.6, 2.2.0 through 2.4.6, 2.0.0 through 2.1.17, and all releases up to and including 1.30.5, the OLE reader follows sector chains from attacker-controlled XLS/OLE metadata without detecting cycles or enforcing a maximum chain length. A tiny malformed .xls/OLE file can set the small-block depot sector chain to point back to itself. During normal XLS detection, OLERead::read() appends the same sector data repeatedly until the PHP process exhausts memory. This is reachable from Reader\\Xls::canRead() and therefore from automatic spreadsheet type detection. Applications that accept attacker-controlled spreadsheet uploads can suffer denial of service from a very small file. This issue has been fixed in versions 5.8.1, 3.10.7, 2.4.7, 2.1.18 and 1.30.6.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00461,"percentile":0.40858,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-xh5m-36r6-47m3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/85f2556b0bf5269061bf45932ecda8a128d81750","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.18","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.8.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":8.17},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":[">= 4.0.0, < 5.8.1",">= 3.3.0, < 3.10.7",">= 2.2.0, < 2.4.7",">= 2.0.0, < 2.1.18","< 1.30.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-28T17:57:16.033236Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":[">=4.0.0, <5.8.1",">=3.3.0, <3.10.7",">=2.2.0, <2.4.7",">=2.0.0, <2.1.18","<1.30.6"],"patched":["5.8.1","3.10.7","2.4.7","2.1.18","1.30.6"],"from":["GHSA-xh5m-36r6-47m3"],"provenance":"source"}],"summary":{"text":"PhpSpreadsheet, a pure PHP spreadsheet reading and writing library, has a flaw in its OLE reader, which follows sector chains from XLS/OLE metadata without detecting cycles or enforcing a maximum chain length. An attacker who can supply a spreadsheet file to an application that uses the library, such as through an upload form, can send a tiny malformed .xls file that causes memory exhaustion and denial of service during automatic type detection, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:49Z"},"euvd":{"id":"EUVD-2026-49930","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","parents":[{"from":"CVE-2018-19277","to":"CVE-2026-59933","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Reader/Gnumeric.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/0f8f071e24ee8b114d894ac172f77dc250e5bfa4","https://github.com/PHPOffice/PhpSpreadsheet/commit/85f2556b0bf5269061bf45932ecda8a128d81750"],"basis":"shared function","functions":["Gnumeric"]}]}],"packageHistory":[{"cve":"CVE-2026-40902","published":"2026-05-12","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-59931","published":"2026-07-28","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-59932","published":"2026-07-28","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-59933","published":"2026-07-28","fixed":"5.8.1","kev":false},{"cve":"CVE-2026-108357","published":"2026-10-22","fixed":"5.10.0","kev":false},{"cve":"CVE-2026-108358","published":"2026-10-22","fixed":"5.10.0","kev":false,"link":{"from":"CVE-2026-59933","to":"CVE-2026-108358","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.4.7","toFixed":"2.4.8","daysApart":86}]}},{"cve":"CVE-2026-108359","published":"2026-10-22","fixed":"5.10.0","kev":false,"link":{"from":"CVE-2026-59933","to":"CVE-2026-108359","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.4.7","toFixed":"2.4.8","daysApart":86}]}},{"cve":"CVE-2026-108360","published":"2026-10-22","fixed":"5.10.0","kev":false,"link":{"from":"CVE-2026-59933","to":"CVE-2026-108360","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.4.7","toFixed":"2.4.8","daysApart":86}]}}],"package":"Packagist:phpoffice/phpspreadsheet"}}