CVE-2024-45046Phpoffice Phpspreadsheet
Media 5.4
Seguir: esta CVE · Phpoffice · Phpoffice Phpspreadsheet Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probabilidad de explotación en 30 días · percentil 47
- Requiere autenticación
- Sí
- Publicada
- 28 ago 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Phpspreadsheet.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | phpoffice/phpexcel |
≤ 1.8.2 |
sin versión corregida | — |
| Packagist | phpoffice/phpspreadsheet |
≥ 2.0.0 < 2.1.0 |
2.1.0 |
composer require "phpoffice/phpspreadsheet:^2.1.0" |
| Packagist | phpoffice/phpspreadsheet |
< 1.29.1 |
1.29.1 |
composer require "phpoffice/phpspreadsheet:^1.29.1" |
Según OSV / GitHub Advisories (GHSA-wgmf-q9vr-vww6). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| phpoffice | phpspreadsheet | < 1.29.1 |
| phpoffice | phpspreadsheet | ≥ 2.0.0 < 2.1.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Exploit Third Party Advisory