What’s Vulnerable › Vulnerabilities

CVE-2024-45048: XML External Entity Reference (XXE) in PHPSpreadsheet

Description

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions are subject to a bypassing of a filter which allows for an XXE-attack. This in turn allows attacker to obtain contents of local files, even if error reporting is muted. This vulnerability has been addressed in release version 2.2.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

How to fix

Upgrade to a fixed version: PHPOffice PhpSpreadsheet 1.29.1, 2.2.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-45048 or the next vulnerability affects your stack