CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Phpoffice

CVE-2024-45046
Phpoffice Phpspreadsheet vulnerability

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. In affected versions `\PhpOffice\PhpSpreadsheet\Writer\Html` doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page. As a result an attacker may used a crafted spreadsheet to fully takeover a session of a user viewing spreadsheet files as HTML. This issue has been addressed in release version 2.1.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

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

More vulnerabilities in Phpoffice products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.