What’s Vulnerable › Vulnerabilities
CVE-2026-114610: fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-22 · updated 2026-10-29
- Weakness: CWE-400
Description
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.
Affected products
- py-pdf fpdf2: from 2.5.0, < 2.8.8
References
- https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f
- https://github.com/py-pdf/fpdf2/pull/1889
- https://github.com/py-pdf/fpdf2/releases/tag/2.8.8
- https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh
- https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh
Get alerted when CVE-2026-114610 or the next vulnerability affects your stack