Vulnerabilities · 2024 · Phpoffice
CVE-2024-56408
Phpoffice Phpspreadsheet vulnerability
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 have no sanitization in the `/vendor/phpoffice/phpspreadsheet/samples/Engineering/Convert-Online.php` file, which leads to the possibility of 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.
Affected products
Phpspreadsheet. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Phpoffice Phpspreadsheet runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-x88g-h956-m5xg · Exploit
- github.com/PHPOffice/PhpSpreadsheet/commit/700a80346be269af668914172bc6f4521982d0b4 · Patch
- github.com/PHPOffice/PhpSpreadsheet/commit/9b9a55c7154daa7cd4095f618933c240508ba3c1
- github.com/PHPOffice/PhpSpreadsheet/commit/a50ebfe118b3ae0ddaea1c48ac19dc38692f4abc
- github.com/PHPOffice/PhpSpreadsheet/commit/b8fac55aa5cb7a3d514c7308378bb37bb711b25e
- nvd.nist.gov/vuln/detail/CVE-2024-56408
- github.com/advisories/GHSA-x88g-h956-m5xg
- nvd.nist.gov/vuln/detail/CVE-2024-56408
- cve.org/CVERecord?id=CVE-2024-56408
More vulnerabilities in Phpoffice products
CVE-2025-22131CVE-2024-56412CVE-2024-56411CVE-2024-56410CVE-2024-56409CVE-2024-56366CVE-2024-56365CVE-2024-48917All 20
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.