{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-108358","id":"CVE-2026-108358","title":"PhpSpreadsheet XML entity injection in XLSX XML scanning","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, ","descriptionLong":"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.","published":"2026-10-22T17:29:56.449Z","updated":"2026-10-28T02:30:39.931421520Z","reserved":"2026-10-09T20:32:44.301Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"}],"rating":"high","products":["PHPOffice PhpSpreadsheet"],"affectedProducts":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","defaultStatus":null,"versions":[{"version":"< 1.30.7","status":"affected"},{"version":">= 2.0.0, < 2.1.19","status":"affected"},{"version":">= 2.2.0, < 2.4.8","status":"affected"},{"version":">= 3.3.0, < 3.10.8","status":"affected"},{"version":">= 4.0.0, < 5.10.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","ranges":[">=4.0.0 <5.10.0",">=3.3.0 <3.10.8",">=2.2.0 <2.4.8",">=2.0.0 <2.1.19","<1.30.7"],"fixed":["5.10.0","3.10.8","2.4.8","2.1.19","1.30.7"],"advisory":"GHSA-3x94-m842-937c"}],"cwes":["CWE-611","CWE-776"],"aliases":["GHSA-3x94-m842-937c"],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-3x94-m842-937c","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/9a0b48622ebfe93fa48cb9bc09ce57303bb07af9","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/da13f40e8760d599b0e8a296017d4b028b20e86c","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/1.30.7","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.1.19","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/2.4.8","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/3.10.8","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/releases/tag/5.10.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108358.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108358","tags":["advisory"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00625,"epssPercentile":0.50722,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-108358","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108358","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-108358","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3x94-m842-937c","ok":true,"note":"GHSA-3x94-m842-937c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-108358","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}