CVE-2015-3542: Phpoffice/phpexcel PHPExcel XXE Vulnerability Vulnerability
HIGHCVE-2015-3542 is a HIGH phpexcel xxe vulnerability vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Phpoffice/phpexcel libraries in the Packagist ecosystem. The issue involves phpexcel xxe vulnerability. Remediation is available by upgrading affected packages to version 1.8.1.
CVE-2015-3542 at a Glance
How to Fix CVE-2015-3542
To remediate this vulnerability, upgrade all affected Phpoffice/phpexcel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade phpoffice/phpexcel to 1.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phpoffice/phpexcel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-3542, inspect your project dependencies for Phpoffice/phpexcel:
inspect dependencies for phpoffice/phpexcel
Analyze the terminal output to locate any version of Phpoffice/phpexcel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where 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. In Phpoffice/phpexcel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-3542 Affected Phpoffice/phpexcel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phpoffice/phpexcel
|
Packagist |
< 1.8.1
|
1.8.1
|
References
Frequently Asked Questions
What is CVE-2015-3542?
Which Phpoffice/phpexcel versions are affected?
What version fixes CVE-2015-3542?
Is phpoffice/phpexcel affected?
What CWE is associated with CVE-2015-3542?
How can I check Packagist dependencies for CVE-2015-3542?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3m9x-2qfj-xvq4",
"modified" : "2024-11-07T17:28:59Z",
"published" : "2024-11-07T17:28:59Z",
"aliases" : [ "CVE-2015-3542" ],
"summary" : "PHPExcel XXE Vulnerability",
"details" : "PHPExcel XXE Vulnerability",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpoffice/phpexcel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/PHPOffice/PHPExcel/commit/0ab614fd952f82f9b7a9280731daa2300e6b000c"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpoffice/phpexcel/CVE-2015-3542.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PHPOffice/PHPExcel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-07T17:28:59Z",
"nvd_published_at" : null
}
}