# CVE-2026-108358: PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-10-22T17:29:56.449Z
- Modified: 2026-10-27T15:47:24.225Z
- Also known as: GHSA-3x94-m842-937c
- Weaknesses: CWE-611, CWE-776
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, XmlScanner::scan in src/PhpSpreadsheet/Reader/Security/XmlScanner.php uses a DOCTYPE detection pattern that accounts for NUL-byte interleaving but not ISO-2022 escape sequences in XLSX XML parts. The escape sequences prevent the scanner from matching the declaration, and XML charset normalization then removes the escape bytes before parsing, exposing a valid DOCTYPE and entity definitions. Processing an attacker-controlled XLSX can therefore cause entity-expansion denial of service on supported PHP versions 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 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.

(As written by CVE List.)

## Affected

- PHPOffice PhpSpreadsheet: < 1.30.7; >= 2.0.0, < 2.1.19; >= 2.2.0, < 2.4.8; >= 3.3.0, < 3.10.8; >= 4.0.0, < 5.10.0
- phpoffice/phpspreadsheet (Packagist): from 4.0.0 before 5.10.0; from 3.3.0 before 3.10.8; from 2.2.0 before 2.4.8; from 2.0.0 before 2.1.19; before 1.30.7

## Every score

- GitHub_M: CVSS:4.0 8.8 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-3x94-m842-937c> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8> (web)
- <https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-108358> (advisory)
- <https://github.com/PHPOffice/PhpSpreadsheet> (package)

## Sources

- CVE List: [CVE-2026-108358](https://www.cve.org/CVERecord?id=CVE-2026-108358), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-3x94-m842-937c](https://github.com/advisories/GHSA-3x94-m842-937c), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-108358](https://nvd.nist.gov/vuln/detail/CVE-2026-108358), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-108358 · Whole record: https://cve.day/CVE-2026-108358.json · Rebuilt by cve.day 2026-11-25T22:59:46.794Z
