CVE-2026-132275
svglib denial of service via nested SVG use references in svg2rlg
An attacker can send a small crafted SVG file that exhausts CPU and memory when rendered.
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 2.3.1 | svglib · -29 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-132275 divulgada · CVSS 7.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación PoC pública | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The svglib library from deeplook is affected: a small, attacker-crafted SVG file with nested `<use>` references can make the svg2rlg() renderer expand exponentially, consuming excessive CPU and memory. An attacker can deliver the file remotely, without logging in or any user action, when an application renders it.
Affects svglib 2.3.0 and earlier when it renders SVG from an untrusted source, including through xhtml2pdf. No vendor rating is given. Fixed in svglib 2.3.1.
Descripción original del registro (GitHub_M)
svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG <use> references by deep-copying each referenced subtree; SvgRenderer.renderUse() in src/svglib/svglib.py calls xlink_href_target(), which rejects direct cycles but permits acyclic reference graphs with repeated fan-out. A small attacker-controlled SVG can therefore trigger exponentially increasing node expansion, consuming excessive CPU and memory in any application that renders it without a non-default option; HTML-to-PDF workflows using xhtml2pdf can reach the same renderer when an embedded data:image/svg+xml image in an HTML img element is passed to pisa.CreatePDF(). This issue is fixed in 2.3.1.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypisvglib |
Corregida | 2.3.1 | -29 d | 2.4.0 no afectada |
2.3.1Arsenal público
Ver los 1 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jvhttps://github.com/googlesky/CVE-2026-132275https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425https://github.com/deeplook/svglib/releases/tag/v2.3.1Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
