- Home
- Vulnerabilities
- CVE-2026-108357
CVE-2026-108357
PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service
Summary
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. From 3.3.0 until 3.10.8 and 5.10.0, Reader\Xml passes stored SpreadsheetML XML through XmlScanner::scan in Xml::canRead and Xml::trySimpleXMLLoadStringPrivate, while Xml::unentity decodes numeric entities only after each DOCTYPE pattern check. A double-encoded less-than character is reduced by the first callback to another encoded character and by the second callback to a literal less-than sign, so SimpleXML receives an unchecked DOCTYPE and entity declaration. Processing attacker-controlled SpreadsheetML XML can cause entity-expansion denial of service and can permit local file access or SSRF on PHP before 8.0 or when LIBXML_NOENT is enabled. This issue is fixed in versions 3.10.8 and 5.10.0.
Affected products and versions
Phpoffice (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Phpspreadsheet | Versions not specified | — | CNA (vendor or assigner) |
Packagist (2 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| phpoffice/phpspreadsheet | from 4.0.0 (included) to 5.10.0 (excluded) |
5.10.0 |
GitHub Advisory |
| phpoffice/phpspreadsheet | from 3.3.0 (included) to 3.10.8 (excluded) |
3.10.8 |
GitHub Advisory |
Fix
Upgrade — Packagist/phpoffice/phpspreadsheet 5.10.0; Packagist/phpoffice/phpspreadsheet 3.10.8official source
Source : GitHub Advisory
Workaround
No workaround provided.
Check whether you are affected
No verification method provided.
Timeline
- — CVE published (cve)
CERT-FR advisories
- GHSA-rxj4-h86g-25gc — PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service 27 Oct 2026
References
- https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-rxj4-h86g-25gcx_refsource_CONFIRM
- https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8x_refsource_MISC
- https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-108357ADVISORY
- https://github.com/PHPOffice/PhpSpreadsheetPACKAGE
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- CNA (vendor or assigner)
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:N(CVSS 4.0, CNA:GitHub_M)- Weakness
- CWE-611 · Autre (CWE-611)