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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/PHPOffice/Math/security/advisories/GHSA-42hm-pq2f-3r7m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/PHPOffice/Math/commit/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a patch
- github.com product
- github.com