Skip to main content
Network Thinking Solutions Logo

CVE-2024-45290

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. 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.

All CVEs
CVE-2024-45290Published 10/7/2024

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. 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.

Vendor advisory
CVSS7.7High

Overview

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. 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. Note that this vulnerability is different from GHSA-w9xv-qf98-ccq4, and resides in a different component. An attacker can access any file on the server, or leak information form arbitrary URLs, potentially exposing sensitive information such as AWS IAM credentials. This issue has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Published
10/7/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
phpspreadsheet
phpoffice
< 1.29.2

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.0.0, < 2.1.1

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.2.0, < 2.3.0

Verify advisory

Source
PhpSpreadsheet
PHPOffice
< 1.29.2

Verify advisory

Source
PhpSpreadsheet
PHPOffice
>= 2.0.0, < 2.1.1

Verify advisory

Source
PhpSpreadsheet
PHPOffice
>= 2.2.0, < 2.3.0

Verify advisory

Source
phpspreadsheet
phpoffice
< 1.29.2

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.0.0, < 2.1.1

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.2.0, < 2.3.0

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.7. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.