CVE-2024-45290
PHP vulnerability analysis and mitigation

Overview

PHPSpreadsheet, a pure PHP library for reading and writing spreadsheet files, was found to contain a vulnerability (CVE-2024-45290) that allows attackers to construct malicious XLSX files with linked media from external URLs. When such files are opened, PhpSpreadsheet retrieves image size and type by reading file contents if the provided path is a URL. The vulnerability affects versions prior to 1.29.2, 2.0.0 to 2.1.1, and 2.2.0 to 2.3.0 (GitHub Advisory).

Technical details

The vulnerability stems from the XLSX reader's handling of paths provided in the xl/drawings/rels/drawing1.xml.rels file within the XLSX archive. When processing these files, the reader calls setPath() with the provided path, and if the path is identified as a URL using filtervar(), it attempts to read the file contents. Critically, filter_var considers file:// and php:// URLs as valid. By using specially crafted php://filter URLs, attackers can create an error oracle that leaks file or URL contents character by character. The vulnerability has been assigned a CVSS v3.1 base score of 7.7 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (GitHub Advisory).

Impact

The vulnerability enables attackers to access any file on the server or leak information from arbitrary URLs. This could potentially expose sensitive information such as AWS IAM credentials and other confidential data stored on the system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade to these patched versions. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management