CVE-2025-48882: PHPOffice Math · XML External Entity (XXE)
Affects PHPOffice MathSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 0.3.0 soon.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.3.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade phpoffice/Math to 0.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubphpoffice/Mathpkg:github/phpoffice/MathOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately audit their use of PHPOffice Math and identify any deployments running versions prior to 0.3.0. The primary mitigation is to upgrade to version 0.3.0 or later, which contains the fix for this XXE vulnerability. If upgrading is not immediately feasible, organizations should implement strict input validation and sanitization to reject XML inputs containing external entity declarations or DTDs. Additionally, configuring the libxml parser to disable DTD loading and external entity resolution (e.g., by omitting LIBXML_DTDLOAD or using LIBXML_NONET flags) can mitigate exploitation risk. Employing Web Application Firewalls (WAFs) with rules to detect and block malicious XML payloads can provide an additional layer of defense. Regular security testing, including static and dynamic analysis of XML processing components, should be conducted to detect similar vulnerabilities. Finally, monitoring logs for unusual XML parsing errors or unexpected outbound requests can help identify exploitation attempts early.
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.