High
PHPOffice Math allows XXE when processing an XML file in the MathML format
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-48882
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:54 UTC · Revision 1
Source evidence
PHPOffice Math allows XXE when processing an XML file in the MathML format
core-osv · Original sourcePublished 30 May 2025, 19:43 UTC
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.
osv:CVE-2025-48882
Complete source record
{
"id": "77d92886dd8caf51e70d2c6e4517d3986c235095a252f804587b7cd8c4a819bf",
"url": "https://osv.dev/vulnerability/CVE-2025-48882",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "PHPOffice Math allows XXE when processing an XML file in the MathML format",
"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.",
"evidence": "osv:CVE-2025-48882",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-48882",
"aliases": [
"CVE-2025-48882",
"GHSA-42hm-pq2f-3r7m"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/phpoffice/math",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"0.2.0",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48882.json"
}
}
],
"modified": "2026-10-28T02:30:27.978222366Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48882.json",
"https://github.com/PHPOffice/Math/security/advisories/GHSA-42hm-pq2f-3r7m",
"https://nvd.nist.gov/vuln/detail/CVE-2025-48882",
"https://github.com/PHPOffice/Math/commit/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-611"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48882.json"
}
},
"related_cves": [
{
"value": "CVE-2025-48882",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494740,
"published_at": "2025-05-30T19:43:35.441+00:00"
}