CVE-2025-48882 PHPOffice Math allows XXE when processing an XML file in the MathML format
An attacker can exploit XML External Entity vulnerabilities in PHPOffice Math to read sensitive files or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-48882?
CVE-2025-48882 is a high-severity vulnerability in PHPOffice Math, published on 30 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-611
Which versions are affected by CVE-2025-48882?
2 open source packages ship an affected version, including phpoffice/math.
| Package | Affected | Fixed in |
|---|---|---|
phpoffice/math Packagist | All versions | 0.3.0 |
phpoffice/math Packagist | All versions | 0.3.0 |
How do I fix CVE-2025-48882?
Upgrade phpoffice/math to 0.3.0 or later.
Is CVE-2025-48882 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-48882 exists.
Sources
Also known as GHSA-42hm-pq2f-3r7m.