XML External Entity (XXE) Injection Affecting phpoffice/phpexcel package, versions >=0.0.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
0.05% (22nd 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-9299760
  • published7 Mar 2025
  • disclosed18 Nov 2024
  • creditAntonio-R1, Antonio Spataro

Introduced: 18 Nov 2024

CVE-2024-47873  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

There is no fixed version for phpoffice/phpexcel.

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection due to the usage of improperly secured regular expressions in the scan and findCharSet methods of the XmlScanner class. By exploiting UCS-4 encoding and encoding guessing techniques, attackers can manipulate XML data processing to initiate unauthorized actions, such as sending HTTP requests to a specified server.

CVSS Base Scores

version 4.0
version 3.1