CVE-2024-56409

Medium

Description

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 are vulnerable to unauthorized reflected cross-site scripting in the `Currency.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.php` script, an attacker can perform a cross-site scripting attack. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.

SeverityMedium
CVSS5.4
Exploit probability—
ProductPhpoffice Phpspreadsheet
PublishedJan 3, 2025
First seenJan 3, 2025

How to fix

Update
  • phpoffice phpspreadsheet1.29.7, 2.1.6, 2.3.5, 3.7.0 or later
  • phpoffice/phpspreadsheet3.7.0, 1.29.7, 2.1.6, 2.3.5 or later

Affected products

ProductAffected versionsFixed in
phpoffice phpspreadsheetv < 1.29.7, 2.0.0 ≤ v < 2.1.6, 2.2.0 ≤ v < 2.3.5, 3.3.0 ≤ v < 3.7.01.29.7, 2.1.6, 2.3.5, 3.7.0
phpoffice/phpspreadsheetPackagist3.0.0 ≤ v < 3.7.0, v < 1.29.7, 2.0.0 ≤ v < 2.1.6, 2.2.0 ≤ v < 2.3.53.7.0, 1.29.7, 2.1.6, 2.3.5
phpoffice/phpexcelPackagistv ≤ 1.8.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-56409 · Phpoffice Phpspreadsheet · Dark Radar