CVE-2026-114610
CVE-2026-114610 · fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'
This page contains facts from public vulnerability sources. Check the original advisory before updating.
fpdf2 is a PDF creation library for Python. From 2.5.0 until 2.8.8, fpdf2's SVGObject.build_xref() passes nested SVG <use> references to GraphicsContext.add_item(), whose default clone=True deep-copy behavior copies the complete referenced graphics tree during FPDF.image() processing. Repeating references at each nesting level makes the in-memory object count and processing work grow exponentially, allowing a small user-controlled SVG to consume excessive CPU and memory, raise MemoryError, fail PDF generation jobs, and reduce or exhaust worker capacity. ResourceAccessPolicy does not prevent the issue because the references are inline and require no external resource, XML entity, local file, or permissive network setting. This issue is fixed in version 2.8.8.
CVSS 6.5 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
fpdf2
- Versions
- >= 2.5.0, < 2.8.8: Affected
No fix published
fpdf2 Debian:13
- Versions
- 2.8.3-1
- 2.8.3-1+deb13u1
- 2.8.4-1
- 2.8.4-2
- 2.8.7-1
- 2.8.7-2
- 2.8.8-1
- 2.8.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
fpdf2 Debian:14
- Versions
- 2.8.3-1
- 2.8.4-1
- 2.8.4-2
- 2.8.7-1
- 2.8.7-2
- Affected ranges
- ECOSYSTEM: < 2.8.8-1
Update to 2.8.8-1
fpdf2 PyPI
- Versions
- 2.5.0
- 2.5.1
- 2.5.2
- 2.5.3
- 2.5.4
- 2.5.5
- 2.5.6
- 2.5.7
- 2.6.0
- 2.6.1
- 2.7.0
- 2.7.1
- 2.7.2
- 2.7.3
- 2.7.4
- 2.7.5
- 2.7.6
- 2.7.7
- 2.7.8
- 2.7.9
- 2.8.1
- 2.8.2
- 2.8.3
- 2.8.4
- 2.8.5
- 2.8.6
- 2.8.7
- Affected ranges
- ECOSYSTEM: ≥ 2.5.0, < 2.8.8
Update to 2.8.8