Skip to main content

CVE-2026-108358: CWE-611: Improper Restriction of XML External Entity Reference in PHPOffice PhpSpreadsheet

0
High
VulnerabilityCVE-2026-108358cvecve-2026-108358cwe-611cwe-776
Published: 10/22/2026 (10/22/2026, 17:29:56 UTC)
Source: CVE Database V5
Vendor/Project: PHPOffice
Product: PhpSpreadsheet

Description

CVE-2026-108358 is a high-severity vulnerability in PHPOffice PhpSpreadsheet affecting multiple versions prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. The issue arises from improper restriction of XML External Entity (XXE) references due to inadequate DOCTYPE detection in the XmlScanner component. This flaw allows specially crafted XLSX files to bypass detection mechanisms, leading to potential denial of service via entity expansion, local file access, or server-side request forgery (SSRF) on vulnerable PHP versions. The vulnerability is fixed in the stated versions.

CVSS v4.0

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
Low
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

PHPOffice

PhpSpreadsheet

Affected versions
<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
Packagistmore threats →ai
phpoffice/phpspreadsheet
pkg:composer/phpoffice/phpspreadsheet
Affected versions
<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

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/22/2026, 18:00:20 UTC

Technical Analysis

PhpSpreadsheet versions prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0 contain a vulnerability in the XmlScanner::scan function where the DOCTYPE detection pattern does not account for ISO-2022 escape sequences in XLSX XML parts. These escape sequences prevent the scanner from recognizing the DOCTYPE declaration, and subsequent XML charset normalization removes the escape bytes, exposing valid DOCTYPE and entity definitions. An attacker can craft XLSX files that exploit this to cause entity expansion denial of service on supported PHP versions, and potentially local file access or SSRF on PHP versions before 8.0 or when LIBXML_NOENT is enabled. The issue is addressed by updates in the fixed versions.

Potential Impact

Exploitation of this vulnerability can lead to denial of service through entity expansion attacks, local file access, or server-side request forgery (SSRF) depending on the PHP environment and configuration. This can compromise system availability and confidentiality by allowing attackers to read local files or make unauthorized network requests. The vulnerability affects PHP versions before 8.0 or configurations where LIBXML_NOENT is enabled.

Mitigation Recommendations

This vulnerability is fixed in PhpSpreadsheet versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0. Users should upgrade to these or later versions to remediate the issue. No additional mitigation steps are indicated beyond applying the official fixes.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-09T20:32:44.301Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ada4bef4d27ba8daa6ca6fc

Added to database: 10/22/2026, 17:46:23 UTC

Last enriched: 10/22/2026, 18:00:20 UTC

Last updated: 10/22/2026, 18:00:20 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses