Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.8 PHP packages CVE-2026-108360 GHSA-2phh-27fw-q4gc PKSA-r15m-kszr-8n8q CVE-2026-108357

PhpSpreadsheet: Four Vulnerabilities Allow XXE, DoS, and SSRF in Spreadsheet Processing

Four vulnerabilities in the PHP library PhpSpreadsheet allow XML external entity attacks, denial of service, and SSRF whitelist bypass through crafted spreadsheet files. Fixed versions are available for all four issues.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Four separate vulnerabilities have been disclosed in PhpSpreadsheet, a pure PHP library for reading and writing spreadsheet files used by many PHP applications. The issues affect XML parsing security checks, ODS file row handling, and the external image-loading whitelist mechanism. Fixed versions exist for every affected release branch.

What happened

Four vulnerabilities were disclosed in PhpSpreadsheet (package phpoffice/phpspreadsheet). Two of them (CVE-2026-108357 and CVE-2026-108358) allow bypassing the library's XmlScanner protection against XML External Entity (XXE) attacks when reading XML-based spreadsheet formats, through a double-encoding/TOCTOU flaw in the unentity() decoding routine and through unhandled ISO-2022 escape sequences, respectively. A third vulnerability (CVE-2026-108359) lets a crafted ODS file trigger unbounded CPU and memory consumption through an uncapped table:number-rows-repeated attribute in the ODS reader. A fourth (CVE-2026-108360) allows an SSRF whitelist bypass: Worksheet\Drawing::setPath only validates the initial external-image URL, and the HTTP stream context follows redirects without re-validating the redirected address, allowing a whitelisted image host to redirect requests to internal addresses.

Technical cause

CVE-2026-108357: Reader\Xml passes XML through XmlScanner::scan, but Xml::unentity decodes numeric entities only after each DOCTYPE check runs. A double-encoded less-than character is reduced by scanning to another encoded character, then decoded to a literal less-than sign afterward, so SimpleXML receives an unchecked DOCTYPE and entity declaration. CVE-2026-108358: XmlScanner::scan's DOCTYPE detection pattern accounts for NUL-byte interleaving but not ISO-2022 escape sequences; charset normalization strips these escape bytes after scanning, exposing a valid DOCTYPE. CVE-2026-108359: Ods::processTableRow accepts an unbounded table:number-rows-repeated attribute and materializes a cell for every repetition without checking the spreadsheet row limit when the row contains a value. CVE-2026-108360: Worksheet\Drawing::setPath validates only the initial URL via setIsWhitelisted; the HTTP stream context follows redirects without re-applying that validation callback to the redirected URL.

Why it matters

The two XXE-related issues (CVE-2026-108357, CVE-2026-108358) can cause entity-expansion denial of service when processing attacker-controlled XML-based spreadsheet files, and can permit local file access or SSRF on PHP versions before 8.0 or when LIBXML_NOENT is enabled. Both carry a CVSS score of 8.8. The ODS resource-consumption issue (CVE-2026-108359, CVSS 8.7) can terminate a PHP worker by exhausting CPU and memory from a small malicious ODS file. The SSRF whitelist bypass (CVE-2026-108360, CVSS 6.4) can cause the server to make a blind GET request to internal addresses, including network-reachable internal endpoints and cloud metadata endpoints, even though the response body itself is not returned to the attacker because the reader discards non-image content.

Who is affected

Applications and services that use the phpoffice/phpspreadsheet composer package to read XML-based spreadsheet formats (for XXE issues), ODS files (for the resource exhaustion issue), or that load external images via Worksheet\Drawing with setAllowExternalImages enabled (for the SSRF issue) are affected, depending on which code paths they exercise.

Affected versions

CVE-2026-108357 (XXE via double-encoded unentity): versions from 3.3.0 through 5.9.0. Fixed in 3.10.8 and 5.10.0. CVE-2026-108358 (XXE via ISO-2022 escape sequences): versions up to and including 1.30.6, 2.0.0 through 2.1.18, 2.2.0 through 2.4.7, 3.3.0 through 3.10.7, and 4.0.0 through 5.9.0. Fixed in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. CVE-2026-108359 (ODS unbounded row repetition): versions up to and including 1.30.6, 2.0.0 through 2.1.18, 2.2.0 through 2.4.7, 3.3.0 through 3.10.7, and 4.0.0 through 5.9.0. Fixed in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. CVE-2026-108360 (SSRF whitelist bypass): versions up to and including 1.30.6, 2.0.0 through 2.1.18, 2.2.0 through 2.4.7, 3.3.0 through 3.10.7, and 4.0.0 through 5.9.0. Fixed in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.

Fixes and mitigation

Fixed versions are available for each affected branch. For the SSRF whitelist bypass (CVE-2026-108360), fixes are in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. For the double-encoding XXE issue (CVE-2026-108357), fixes are in 3.10.8 and 5.10.0. For the ISO-2022 XXE issue (CVE-2026-108358) and the ODS resource consumption issue (CVE-2026-108359), fixes are in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.

Recommended action

Update phpoffice/phpspreadsheet to the fixed version matching your current branch (1.30.7, 2.1.19, 2.4.8, 3.10.8, or 5.10.0) to resolve all four vulnerabilities applicable to that branch. Review usage of Worksheet\Drawing with setAllowExternalImages enabled, and avoid processing untrusted XML-based spreadsheet files or ODS files until updated.

PatchBriefing score

8.8 / 10 · High

Official CVSS: 8.8

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

EPSS 0.0050 (35 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

phpoffice/phpspreadsheet <= 1.30.6
vulnerable
phpoffice/phpspreadsheet <=1.30.6|>=2.0.0,<=2.1.18|>=2.2.0,<=2.4.7|>=3.3.0,<=3.10.7|>=4.0.0,<=5.9.0
vulnerable
phpoffice/phpspreadsheet ≥ 0 < 1.30.7
vulnerable
phpoffice/phpspreadsheet
vulnerable
≥ 1.30.7
patched
≥ 2.1.19
patched
≥ 2.4.8
patched
≥ 3.10.8
patched
≥ 5.10.0
patched
phpoffice/phpspreadsheet >= 3.3.0, <= 3.10.7
vulnerable
phpoffice/phpspreadsheet >=3.3.0,<=3.10.7|>=4.0.0,<=5.9.0
vulnerable
phpoffice/phpspreadsheet ≥ 3.3.0 < 3.10.8
vulnerable
phpoffice/phpspreadsheet
vulnerable
≥ 3.10.8
patched
≥ 5.10.0
patched
phpoffice/phpspreadsheet <= 1.30.6
vulnerable
phpoffice/phpspreadsheet <=1.30.6|>=2.0.0,<=2.1.18|>=2.2.0,<=2.4.7|>=3.3.0,<=3.10.7|>=4.0.0,<=5.9.0
vulnerable
phpoffice/phpspreadsheet ≥ 0 < 1.30.7
vulnerable
phpoffice/phpspreadsheet
vulnerable
≥ 1.30.7
patched
≥ 2.1.19
patched
≥ 2.4.8
patched
≥ 3.10.8
patched
≥ 5.10.0
patched
phpoffice/phpspreadsheet <= 1.30.6
vulnerable
phpoffice/phpspreadsheet <=1.30.6|>=2.0.0,<=2.1.18|>=2.2.0,<=2.4.7|>=3.3.0,<=3.10.7|>=4.0.0,<=5.9.0
vulnerable
phpoffice/phpspreadsheet ≥ 0 < 1.30.7
vulnerable
phpoffice/phpspreadsheet
vulnerable
≥ 1.30.7
patched
≥ 2.1.19
patched
≥ 2.4.8
patched
≥ 3.10.8
patched
≥ 5.10.0
patched

Reported fixes

Fixed versions are available for each affected branch. For the SSRF whitelist bypass (CVE-2026-108360), fixes are in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. For the double-encoding XXE issue (CVE-2026-108357), fixes are in 3.10.8 and 5.10.0. For the ISO-2022 XXE issue (CVE-2026-108358) and the ODS resource consumption issue (CVE-2026-108359), fixes are in 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.

How this was built

16 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • GitHub Advisory Database database
  • Packagist Security Advisories registry
  • OSV.dev database
  • NVD (NIST) database
  • GitHub Advisory Database database
Unified report
PhpSpreadsheet: Four Vulnerabilities Allow XXE, DoS, and SSRF in Spreadsheet Processing
1 article · 16 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
  5. Published
  6. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email