Live threats

All CVEs / PHPOffice

CVE-2026-108358PHPOffice PhpSpreadsheet

High 8.8 No auth needed

Priority
68
CVSS 4.0
8.8
EPSS
—
Auth required
No
Published
Oct 22, 2026
Updated
Oct 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-611, CWE-776
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for PhpSpreadsheet.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpoffice/phpspreadsheet ≥ 4.0.0 < 5.10.0 5.10.0 composer require "phpoffice/phpspreadsheet:^5.10.0"
Packagist phpoffice/phpspreadsheet ≥ 3.3.0 < 3.10.8 3.10.8 composer require "phpoffice/phpspreadsheet:^3.10.8"
Packagist phpoffice/phpspreadsheet ≥ 2.2.0 < 2.4.8 2.4.8 composer require "phpoffice/phpspreadsheet:^2.4.8"
Packagist phpoffice/phpspreadsheet ≥ 2.0.0 < 2.1.19 2.1.19 composer require "phpoffice/phpspreadsheet:^2.1.19"
Packagist phpoffice/phpspreadsheet < 1.30.7 1.30.7 composer require "phpoffice/phpspreadsheet:^1.30.7"

Per OSV / GitHub Advisories (GHSA-3x94-m842-937c). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.