PT-2024-31543

CVE-2024-45290

·

Published

2024-10-07

·

Updated

2025-10-02

Description by

CVSS 3.1
7.7
High
MetricsAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions PHPSpreadsheet versions prior to 1.29.2 PHPSpreadsheet versions prior to 2.1.1 PHPSpreadsheet versions prior to 2.3.0
Description It's possible for an attacker to construct an XLSX file which links media from external URLs. When opening the XLSX file, PHPSpreadsheet retrieves the image size and type by reading the file contents, if the provided path is a URL. By using specially crafted php://filter URLs, an attacker can leak the contents of any file or URL. An attacker can access any file on the server, or leak information from arbitrary URLs, potentially exposing sensitive information such as AWS IAM credentials.
Recommendations For PHPSpreadsheet versions prior to 1.29.2, update to version 1.29.2 or later. For PHPSpreadsheet versions prior to 2.1.1, update to version 2.1.1 or later. For PHPSpreadsheet versions prior to 2.3.0, update to version 2.3.0 or later. As a temporary workaround, consider disabling the setPath() function until a patch is available. Restrict access to the vulnerable xl/drawings/ rels/drawing1.xml.rels file to minimize the risk of exploitation. Avoid using the php://filter URLs in the affected API endpoint until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-5GPR-W2P5-6M37
GHSA-W9XV-QF98-CCQ4
Found an issue in the description? Have something to add? Feel free to write us 👾