PHPOffice Math allows XXE when processing an XML file in the MathML format
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-611 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PHPOffice | Math | before 0.3.0 | 0.3.0 | Patch available | CNA |
| — | phpoffice/math (Packagist) | before 0.3.0 | 0.3.0 | Patch available | GHSA-42hm-pq2f-3r7m |
- Math VendorPHPOffice Affected before 0.3.0 Fixed in 0.3.0 Patch available CNA
- phpoffice/math (Packagist) Vendor— Affected before 0.3.0 Fixed in 0.3.0 Patch available GHSA-42hm-pq2f-3r7m
Remediation
- Fix · CNA Math (PHPOffice) Fixed in 0.3.0
- Fix · GHSA-42hm-pq2f-3r7m phpoffice/math (Packagist) Fixed in 0.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-48882
- 2026-10-03 Alias added: GHSA-42hm-pq2f-3r7m
References
More PHPOffice vulnerabilities
- TI-2026-32885 PhpSpreadsheet: File::prohibitWrappers bypass CVSS 4.0CRITICAL 9.2
- TI-2026-26406 PhpSpreadsheet SSRF and RCE via PHP stream wrappers in IOFactory::load CVSS 4.0CRITICAL 9.2
- TI-2026-79412 PhpSpreadsheet ODS reader exhausts CPU and memory via repeated rows CVSS 4.0HIGH 8.7
- TI-2025-34182 PhpSpreadsheet vulnerable to SSRF when reading and displaying a processed HTML document in the browser CVSS 4.0HIGH 8.7
- TI-2026-78784 Insecure deserialization in PHPOffice PHPPresentation allows code execution CVSS 4.0CRITICAL 9.2
- TI-2024-37339 PhpSpreadsheet vulnerable to unauthorized reflected XSS in Currency.php file CVSS 4.0HIGH 8.3
Sources
- CVE-2025-48882 · CVE Program
- CVE-2025-48882 · NVD
- FIRST EPSS
- GHSA-42hm-pq2f-3r7m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences