CVE-2025-48882 in Phpoffice products
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.
Affects 0 products from 1 vendor. Facts below cite their sources.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Phpoffice | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-48882 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-039230-I |
| Published | 2025-05-30 |
| Last modified | 2026-04-15 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-611: CWE-611
Related attack patterns (CAPEC)
CAPEC-221 Data Serialization External Entities Blowup via CWE-611
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
PHPOffice Math library versions prior to 0.3.0 are vulnerable to XML External Entity (XXE) attacks due to improper handling of XML data loading with the LIBXML_DTDLOAD flag.
An attacker can exploit this vulnerability by crafting a malicious XML file that references external entities. When this file is loaded by an application using the affected PHPOffice Math library, it can lead to unauthorized access to internal files, internal port scanning, remote code execution, or denial of service.
Questions
What is CVE-2025-48882?
PHPOffice Math library versions prior to 0.3.0 are vulnerable to XML External Entity (XXE) attacks due to improper handling of XML data loading with the LIBXML_DTDLOAD flag.
Is CVE-2025-48882 actively exploited?
No confirmed active exploitation of CVE-2025-48882 as of 2026-05-30.
How do I remediate CVE-2025-48882?
Priority: HIGH.
What systems are affected by CVE-2025-48882?
CVE-2025-48882 affects Phpoffice.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Phpoffice","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.