๐Ÿ” CVE Alert

CVE-2026-114610

MEDIUM 6.5

fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'

CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-400 CWE-770
Vendor py-pdf
Product fpdf2
Published Oct 22, 2026
Stay Ahead of the Next One

Get instant alerts for py-pdf fpdf2

Be the first to know when new medium vulnerabilities affecting py-pdf fpdf2 are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

py-pdf / fpdf2
>= 2.5.0, < 2.8.8

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh github.com: https://github.com/py-pdf/fpdf2/pull/1889 github.com: https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f github.com: https://github.com/py-pdf/fpdf2/releases/tag/2.8.8