Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:composer/phpoffice/math@0.2.0
purl pkg:composer/phpoffice/math@0.2.0
Next non-vulnerable version 0.3.0
Latest non-vulnerable version 0.3.0
Risk 4.0
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-t3wy-nem8-qygy
Aliases:
CVE-2025-48882
GHSA-42hm-pq2f-3r7m
PHPOffice Math allows XXE when processing an XML file in the MathML format **Product:** Math **Version:** 0.2.0 **CWE-ID:** CWE-611: Improper Restriction of XML External Entity Reference **CVSS vector v.4.0:** 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N) **CVSS vector v.3.1:** 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) **Description:** An attacker can create a special XML file, during which it processed, external entities are loaded, and it’s possible to read local server files. **Impact:** Local server files reading **Vulnerable component:** The [`loadXML`](https://github.com/PHPOffice/Math/blob/c3ecbf35601e2a322bf2ddba48589d79ac827b92/src/Math/Reader/MathML.php#L38C9-L38C55) function with the unsafe [`LIBXML_DTDLOAD`](https://www.php.net/manual/en/libxml.constants.php#constant.libxml-dtdload) flag, the [`MathML`](https://github.com/PHPOffice/Math/blob/master/src/Math/Reader/MathML.php) class **Exploitation conditions:** The vulnerability applies only to reading a file in the `MathML` format. **Mitigation:** If there is no option to refuse using the [`LIBXML_DTDLOAD`](https://www.php.net/manual/en/libxml.constants.php#constant.libxml-dtdload) flag, it’s recommended to filter external entities through the implementation of the [`custom external entity loader function`](https://www.php.net/manual/en/function.libxml-set-external-entity-loader.php). **Researcher: Aleksandr Zhurnakov (Positive Technologies)**
0.3.0
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-09T20:43:59.631454+00:00 GHSA Importer Affected by VCID-t3wy-nem8-qygy https://github.com/advisories/GHSA-42hm-pq2f-3r7m 38.6.0
2026-06-06T05:51:08.560360+00:00 GitLab Importer Affected by VCID-t3wy-nem8-qygy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/phpoffice/math/CVE-2025-48882.yml 38.6.0