CVE-2026-49358pontedilana php-weasyprint
Baja 3.0
Seguir: esta CVE · pontedilana · pontedilana php-weasyprint Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 18
- CVSS 3.1
- 3.0
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 19 jun 2026
- Actualizada
- 25 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-73
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L
Qué pasa
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, `AbstractGenerator::$temporaryFiles` is a public array, and `removeTemporaryFiles()` — invoked from `__destruct()` and from a registered shutdown function — calls `unlink()` on every entry without verifying that the path is contained within the temporary folder. Any code holding a reference to a generator instance can push an arbitrary path into the array and have it deleted on script shutdown. This mirrors the KnpLabs/snappy issue GHSA-87qc-37cw-84h4. PhpWeasyPrint version 2.6.0 contains a patch for the issue.
Qué hacer
- Aplica la actualización de seguridad del fabricante para php-weasyprint.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | pontedilana/php-weasyprint |
< 2.6.0 |
2.6.0 |
composer require "pontedilana/php-weasyprint:^2.6.0" |
Según OSV / GitHub Advisories (GHSA-5g9f-cwwg-4p8g). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- pontedilana · php-weasyprint
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.