XML External Entity (XXE) Injection Affecting phpoffice/phpexcel package, versions <1.8.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
5.59% (90th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML External Entity (XXE) Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-PHPOFFICEPHPEXCEL-9299817
  • published7 Mar 2025
  • disclosed14 Nov 2018
  • creditalxjsn

Introduced: 14 Nov 2018

CVE-2018-19277  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade phpoffice/phpspreadsheet1 to version 1.5.1 or higher.

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection. phpoffice/phpspreadsheet is a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file formats, like Excel and LibreOffice Calc.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the securityScan() function. An attacker could bypass the protection mechanisms for XXE by using UTF-7 encoding in a .xlsx file.

Details

<>

CVSS Base Scores

version 3.1