// For flags

CVE-2024-45060

Unauthenticated Cross-Site-Scripting (XSS) in sample file in PHPSpreadsheet

Severity Score

7.1
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track*
*SSVC
Descriptions

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. One of the sample scripts in PhpSpreadsheet is susceptible to a cross-site scripting (XSS) vulnerability due to improper handling of input where a number is expected leading to formula injection. The code in in `45_Quadratic_equation_solver.php` concatenates the user supplied parameters directly into spreadsheet formulas. This allows an attacker to take control over the formula and output unsanitized data into the page, resulting in JavaScript execution. 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.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:Track*
Exploitation
Poc
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2024-08-21 CVE Reserved
  • 2024-10-07 CVE Published
  • 2024-10-08 CVE Updated
  • 2024-10-18 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
PHPOffice
Search vendor "PHPOffice"
PhpSpreadsheet
Search vendor "PHPOffice" for product "PhpSpreadsheet"
< 1.29.2
Search vendor "PHPOffice" for product "PhpSpreadsheet" and version " < 1.29.2"
en
Affected
PHPOffice
Search vendor "PHPOffice"
PhpSpreadsheet
Search vendor "PHPOffice" for product "PhpSpreadsheet"
>= 2.0.0 < 2.1.1
Search vendor "PHPOffice" for product "PhpSpreadsheet" and version " >= 2.0.0 < 2.1.1"
en
Affected
PHPOffice
Search vendor "PHPOffice"
PhpSpreadsheet
Search vendor "PHPOffice" for product "PhpSpreadsheet"
>= 2.2.0 < 2.3.0
Search vendor "PHPOffice" for product "PhpSpreadsheet" and version " >= 2.2.0 < 2.3.0"
en
Affected