CVE-2024-56409
PHP vulnerability analysis and mitigation

Overview

PhpSpreadsheet, a PHP library for reading and writing spreadsheet files, was found to contain an unauthorized reflected cross-site scripting vulnerability (CVE-2024-56409). The vulnerability affects versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7, specifically in the Currency.php file. The issue was discovered by Aleksey Solovev from Positive Technologies and disclosed on January 3, 2025 (GitHub Advisory).

Technical details

The vulnerability exists in the /vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.php script due to improper input validation and sanitization. The issue stems from the lack of proper sanitization of the currency parameter, which allows attackers to inject malicious content. The vulnerability has been assigned a CVSS v4.0 score of 8.3 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:L/SI:H/SA:L (GitHub Advisory).

Impact

Successful exploitation of this vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser. The attack can lead to high integrity impact on the vulnerable system and subsequent systems, though confidentiality impact is limited (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7. Users are advised to upgrade to these patched versions. The fix includes proper sanitization of the currency variable to prevent XSS attacks (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