Skip to content

CVE-2025-48882 PHPOffice Math allows XXE when processing an XML file in the MathML format

HighCVSS 8.7 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
PHP

Description

PHPOffice Math is a library that provides a set of classes to manipulate different formula file formats. Prior to version 0.3.0, loading XML data using the standard libxml extension and the LIBXML_DTDLOAD flag without additional filtration, leads to XXE. Version 0.3.0 fixes the vulnerability.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
phpoffice/math(Packagist) < 0.3.0; <= 0.2.0; = 0.1.0; = 0.2.0 0.3.0 Fixed
phpoffice/math = < 0.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
phpoffice/math(Packagist) < 0.3.0 0.3.0
phpoffice/math(Packagist) = 0.1.0 No fix listed
phpoffice/math(Packagist) = 0.2.0 No fix listed
phpoffice/math(Packagist) <= 0.2.0 No fix listed
phpoffice/math = < 0.3.0 No fix listed

References