CVE-2026-114610
mediumfpdf2 is a PDF creation library for Python.
fpdf2 is a PDF creation library for Python. From 2.5.0 until 2.8.8, fpdf2's SVGObject.build_xref() passes nested SVG 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:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f security-advisories@github.com
- https://github.com/py-pdf/fpdf2/pull/1889 security-advisories@github.com
- https://github.com/py-pdf/fpdf2/releases/tag/2.8.8 security-advisories@github.com
- https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh security-advisories@github.com
- https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh 134c704f-9b21-4f2e-91b3-4a467353bcc0
