CVE-2024-48917Phpoffice Phpspreadsheet
Alta 7.5 Sin autenticación
Seguir: esta CVE · Phpoffice · Phpoffice Phpspreadsheet Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probabilidad de explotación en 30 días · percentil 61
- Requiere autenticación
- No
- Publicada
- 18 nov 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-611
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Qué pasa
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The `XmlScanner` class has a scan method which should prevent XXE attacks. However, in a bypass of the previously reported `CVE-2024-47873`, the regexes from the `findCharSet` method, which is used for determining the current encoding can be bypassed by using a payload in the encoding UTF-7, and adding at end of the file a comment with the value `encoding="UTF-8"` with `"`, which is matched by the first regex, so that `encoding='UTF-7'` with single quotes `'` in the XML header is not matched by the second regex. An attacker can bypass the sanitizer and achieve an XML external entity attack. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Phpspreadsheet.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | phpoffice/phpexcel |
≤ 1.8.2 |
sin versión corregida | — |
| Packagist | phpoffice/phpspreadsheet |
< 1.29.4 |
1.29.4 |
composer require "phpoffice/phpspreadsheet:^1.29.4" |
| Packagist | phpoffice/phpspreadsheet |
≥ 2.0.0 < 2.1.3 |
2.1.3 |
composer require "phpoffice/phpspreadsheet:^2.1.3" |
| Packagist | phpoffice/phpspreadsheet |
≥ 2.2.0 < 2.3.2 |
2.3.2 |
composer require "phpoffice/phpspreadsheet:^2.3.2" |
| Packagist | phpoffice/phpspreadsheet |
≥ 3.3.0 < 3.4.0 |
3.4.0 |
composer require "phpoffice/phpspreadsheet:^3.4.0" |
Según OSV / GitHub Advisories (GHSA-7cc9-j4mv-vcjp). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| phpoffice | phpspreadsheet | < 1.29.4 |
| phpoffice | phpspreadsheet | ≥ 2.0.0 < 2.1.3 |
| phpoffice | phpspreadsheet | ≥ 2.2.0 < 2.3.2 |
| phpoffice | phpspreadsheet | ≥ 3.3.0 < 3.4.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Product
- github.com Exploit Vendor Advisory
- owasp.org Not Applicable