cve.bz

CVE-2024-45290 phpoffice phpspreadsheet: Absolute Path Traversal

7.5 highExploit referenceEPSS 0.6%Fix available

High (7.5) in phpoffice phpspreadsheet. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in phpoffice/phpspreadsheet 1.29.2, 2.1.1, 2.3.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-36 Absolute Path Traversal
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-45290 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-45290?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-45290?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-45290 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpoffice:phpspreadsheetbefore 1.29.2
phpoffice:phpspreadsheetfrom 2.0.0 before 2.1.1
phpoffice:phpspreadsheetfrom 2.2.0 before 2.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5gpr-w2p5-6m37Packagistphpoffice/phpspreadsheet>=2.2.0 <2.3.02.3.0
GHSA-5gpr-w2p5-6m37Packagistphpoffice/phpspreadsheet<1.29.21.29.2
GHSA-5gpr-w2p5-6m37Packagistphpoffice/phpspreadsheet>=2.0.0 <2.1.12.1.1
GHSA-5gpr-w2p5-6m37Packagistphpoffice/phpexcel<=1.8.2no fix published

Attack patterns (CAPEC)

  • CAPEC-597 Absolute Path Traversal
  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON