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

Published Oct 22, 2026
·
Updated

fpdf2 is a PDF creation library for Python. From 2.5.0 until 2.8.8, fpdf2's SVGObject.buildxref() passes nested SVG <use> references to GraphicsContext.additem(), 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 Software

1 affected component
pypi/fpdf2>=2.5.0<2.8.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade fpdf2 to a version that resolves this vulnerability.

    Fixed in 2.8.8

Event History

Oct 22, 2026
CVE Published
via MITRE·05:21 PM
Data Sourced
via MITRE·05:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using fpdf2 versions 2.5.0 through 2.8.8 that pass user-controlled SVG files to FPDF.image() are exposed. A small crafted SVG can consume CPU and memory during PDF generation and reduce or exhaust worker capacity.

2

What does an attacker need to exploit it?

The attacker needs the ability to supply an SVG processed by FPDF.image(). The SVG must contain nested and repeated inline <use> references; no external resources, XML entities, local files, or network access are required.

3

Does ResourceAccessPolicy mitigate the issue?

No. ResourceAccessPolicy does not prevent this condition because the malicious references are inline and do not rely on external resource access.

4

What version fixes the issue?

Upgrade fpdf2 to version 2.8.8. The issue is fixed in that version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203