CVE-2023-28115Knplabs Snappy
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Knplabs · Knplabs Snappy Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.7% probabilidad de explotación en 30 días · percentil 91
- Requiere autenticación
- No
- Publicada
- 17 mar 2023
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-502
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.4.2, Snappy is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the `file_exists()` function. If an attacker can upload files of any type to the server he can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution especially when snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from the `generateFromHtml()` function, it will invoke deserialization. This vulnerability is capable of remote code execution if Snappy is used with frameworks or developer code with vulnerable POP chains. It has been fixed in version 1.4.2.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Snappy.
- 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 | knplabs/knp-snappy |
< 1.4.2 |
1.4.2 |
composer require "knplabs/knp-snappy:^1.4.2" |
Según OSV / GitHub Advisories (GHSA-gq6w-q6wh-jggc). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| knplabs | snappy | < 1.4.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Product
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Exploit Vendor Advisory