CVE-2026-114610
MEDIUM 6.5CVSS 3.1fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'
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.
- Published
- 22 Oct 2026
- Last modified
- 29 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-400
- Also known as
- GHSA-wqw6-wpr3-45rh
- Sources
- NVDJSONOSV GHSA-wqw6-wpr3-45rhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | fpdf2 | >= 2.5.0, < 2.8.8 | 2.8.8 |
References
- https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f · WEB
- https://github.com/py-pdf/fpdf2/pull/1889 · WEB
- https://github.com/py-pdf/fpdf2/releases/tag/2.8.8 · WEB
- https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-114610 · ADVISORY
- https://github.com/py-pdf/fpdf2 · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 22 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Oct 2026)