Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-t3wy-nem8-qygy
Summary
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)**
Aliases
0
alias CVE-2025-48882
1
alias GHSA-42hm-pq2f-3r7m
Fixed_packages
0
url pkg:composer/phpoffice/math@0.3.0
purl pkg:composer/phpoffice/math@0.3.0
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:composer/phpoffice/math@0.3.0
Affected_packages
0
url pkg:composer/phpoffice/math@0.1.0
purl pkg:composer/phpoffice/math@0.1.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-t3wy-nem8-qygy
resource_url http://public2.vulnerablecode.io/packages/pkg:composer/phpoffice/math@0.1.0
1
url pkg:composer/phpoffice/math@0.2.0
purl pkg:composer/phpoffice/math@0.2.0
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-t3wy-nem8-qygy
resource_url http://public2.vulnerablecode.io/packages/pkg:composer/phpoffice/math@0.2.0
References
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2025-48882
reference_id
reference_type
scores
0
value 0.00369
scoring_system epss
scoring_elements 0.59118
published_at 2026-06-06T12:55:00Z
1
value 0.00369
scoring_system epss
scoring_elements 0.59094
published_at 2026-06-08T12:55:00Z
2
value 0.00369
scoring_system epss
scoring_elements 0.5911
published_at 2026-06-09T12:55:00Z
3
value 0.00369
scoring_system epss
scoring_elements 0.59114
published_at 2026-06-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2025-48882
1
reference_url https://github.com/PHPOffice/Math
reference_id
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/PHPOffice/Math
2
reference_url https://github.com/PHPOffice/Math/commit/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a
reference_id
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-05-30T20:46:07Z/
url https://github.com/PHPOffice/Math/commit/fc31c8f57a7a81f962cbf389fd89f4d9d06fc99a
3
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-48882
reference_id CVE-2025-48882
reference_type
scores
0
value 8.7
scoring_system cvssv4
scoring_elements 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
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2025-48882
4
reference_url https://github.com/advisories/GHSA-42hm-pq2f-3r7m
reference_id GHSA-42hm-pq2f-3r7m
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-42hm-pq2f-3r7m
5
reference_url https://github.com/PHPOffice/Math/security/advisories/GHSA-42hm-pq2f-3r7m
reference_id GHSA-42hm-pq2f-3r7m
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
1
value 8.7
scoring_system cvssv4
scoring_elements 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
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-05-30T20:46:07Z/
url https://github.com/PHPOffice/Math/security/advisories/GHSA-42hm-pq2f-3r7m
Weaknesses
0
cwe_id 611
name Improper Restriction of XML External Entity Reference
description The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
2
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_score7.0 - 8.9
Exploitability0.5
Weighted_severity8.0
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-t3wy-nem8-qygy