Search

Find a vulnerability

Search criteria

    4 vulnerabilities found for fpdf2 by py-pdf

    CVE-2026-114610 (GCVE-0-2026-114610)

    Vulnerability from nvd – Published: 2026-10-22 17:21 – Updated: 2026-10-22 17:21
    VLAI
    Title
    fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'
    Summary
    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 - Uncontrolled Resource Consumption
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7761 records in the last 180 days details
    Impacted products
    Vendor Product Version
    py-pdf fpdf2 Affected: >= 2.5.0, < 2.8.8
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "fpdf2",
              "vendor": "py-pdf",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003e= 2.5.0, \u003c 2.8.8"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "fpdf2 is a PDF creation library for Python. From 2.5.0 until 2.8.8, fpdf2\u0027s SVGObject.build_xref() passes nested SVG \u003cuse\u003e 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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400: Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770: Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-10-22T17:21:11.788Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1889",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1889"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8"
            }
          ],
          "source": {
            "advisory": "GHSA-wqw6-wpr3-45rh",
            "discovery": "UNKNOWN"
          },
          "title": "fpdf2: Exponential SVG \u0027\u003cuse\u003e\u0027 expansion causes CPU and memory exhaustion in \u0027FPDF.image()\u0027"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-114610",
        "datePublished": "2026-10-22T17:21:11.788Z",
        "dateReserved": "2026-10-21T20:34:25.599Z",
        "dateUpdated": "2026-10-22T17:21:11.788Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-114609 (GCVE-0-2026-114609)

    Vulnerability from nvd – Published: 2026-10-22 17:18 – Updated: 2026-10-22 17:18
    VLAI
    Title
    fpdf2 implicitly loads external URLs and local image paths when rendering attacker-controlled content
    Summary
    fpdf2 is a PDF creation library for Python. Prior to 2.8.8, fpdf2's shared image loader automatically dereferences attacker-controlled HTTP(S) URLs and raw local paths supplied through FPDF.image(), FPDF.write_html() HTML <img src> values, SVG <image href> or xlink:href values, and template image fields. This can cause outbound requests to attacker-selected internal or external services and local file open attempts, although local content is exposed only when it is a valid supported image or SVG resource. file:// URLs are not specially handled, so the local-path case requires a raw filesystem path. This issue is fixed in version 2.8.8.
    CWE
    • CWE-918 - Server-Side Request Forgery (SSRF)
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7761 records in the last 180 days details
    Impacted products
    Vendor Product Version
    py-pdf fpdf2 Affected: < 2.8.8
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "fpdf2",
              "vendor": "py-pdf",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.8.8"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "fpdf2 is a PDF creation library for Python. Prior to 2.8.8, fpdf2\u0027s shared image loader automatically dereferences attacker-controlled HTTP(S) URLs and raw local paths supplied through FPDF.image(), FPDF.write_html() HTML \u003cimg src\u003e values, SVG \u003cimage href\u003e or xlink:href values, and template image fields. This can cause outbound requests to attacker-selected internal or external services and local file open attempts, although local content is exposed only when it is a valid supported image or SVG resource. file:// URLs are not specially handled, so the local-path case requires a raw filesystem path. This issue is fixed in version 2.8.8."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-918",
                  "description": "CWE-918: Server-Side Request Forgery (SSRF)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-10-22T17:18:22.802Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-rw7v-4hrq-x6r9",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-rw7v-4hrq-x6r9"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1824",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1824"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1857",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1857"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/0d27190a8c907e02ebe9cd881471a14d0622b432",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/0d27190a8c907e02ebe9cd881471a14d0622b432"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/6e23f610b7946e96e9a5dd0535dcbfbe7ac1397d",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/6e23f610b7946e96e9a5dd0535dcbfbe7ac1397d"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8"
            }
          ],
          "source": {
            "advisory": "GHSA-rw7v-4hrq-x6r9",
            "discovery": "UNKNOWN"
          },
          "title": "fpdf2 implicitly loads external URLs and local image paths when rendering attacker-controlled content"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-114609",
        "datePublished": "2026-10-22T17:18:22.802Z",
        "dateReserved": "2026-10-21T20:34:25.599Z",
        "dateUpdated": "2026-10-22T17:18:22.802Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-114610 (GCVE-0-2026-114610)

    Vulnerability from cvelistv5 – Published: 2026-10-22 17:21 – Updated: 2026-10-22 17:21
    VLAI
    Title
    fpdf2: Exponential SVG '<use>' expansion causes CPU and memory exhaustion in 'FPDF.image()'
    Summary
    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 - Uncontrolled Resource Consumption
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7761 records in the last 180 days details
    Impacted products
    Vendor Product Version
    py-pdf fpdf2 Affected: >= 2.5.0, < 2.8.8
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "fpdf2",
              "vendor": "py-pdf",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003e= 2.5.0, \u003c 2.8.8"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "fpdf2 is a PDF creation library for Python. From 2.5.0 until 2.8.8, fpdf2\u0027s SVGObject.build_xref() passes nested SVG \u003cuse\u003e 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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-400",
                  "description": "CWE-400: Uncontrolled Resource Consumption",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770: Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-10-22T17:21:11.788Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-wqw6-wpr3-45rh"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1889",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1889"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/d7bd1061205d50da6a541dadfdb9d66beb763f2f"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8"
            }
          ],
          "source": {
            "advisory": "GHSA-wqw6-wpr3-45rh",
            "discovery": "UNKNOWN"
          },
          "title": "fpdf2: Exponential SVG \u0027\u003cuse\u003e\u0027 expansion causes CPU and memory exhaustion in \u0027FPDF.image()\u0027"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-114610",
        "datePublished": "2026-10-22T17:21:11.788Z",
        "dateReserved": "2026-10-21T20:34:25.599Z",
        "dateUpdated": "2026-10-22T17:21:11.788Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-114609 (GCVE-0-2026-114609)

    Vulnerability from cvelistv5 – Published: 2026-10-22 17:18 – Updated: 2026-10-22 17:18
    VLAI
    Title
    fpdf2 implicitly loads external URLs and local image paths when rendering attacker-controlled content
    Summary
    fpdf2 is a PDF creation library for Python. Prior to 2.8.8, fpdf2's shared image loader automatically dereferences attacker-controlled HTTP(S) URLs and raw local paths supplied through FPDF.image(), FPDF.write_html() HTML <img src> values, SVG <image href> or xlink:href values, and template image fields. This can cause outbound requests to attacker-selected internal or external services and local file open attempts, although local content is exposed only when it is a valid supported image or SVG resource. file:// URLs are not specially handled, so the local-path case requires a raw filesystem path. This issue is fixed in version 2.8.8.
    CWE
    • CWE-918 - Server-Side Request Forgery (SSRF)
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7761 records in the last 180 days details
    Impacted products
    Vendor Product Version
    py-pdf fpdf2 Affected: < 2.8.8
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "fpdf2",
              "vendor": "py-pdf",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 2.8.8"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "fpdf2 is a PDF creation library for Python. Prior to 2.8.8, fpdf2\u0027s shared image loader automatically dereferences attacker-controlled HTTP(S) URLs and raw local paths supplied through FPDF.image(), FPDF.write_html() HTML \u003cimg src\u003e values, SVG \u003cimage href\u003e or xlink:href values, and template image fields. This can cause outbound requests to attacker-selected internal or external services and local file open attempts, although local content is exposed only when it is a valid supported image or SVG resource. file:// URLs are not specially handled, so the local-path case requires a raw filesystem path. This issue is fixed in version 2.8.8."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 5.8,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "LOW",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-918",
                  "description": "CWE-918: Server-Side Request Forgery (SSRF)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-10-22T17:18:22.802Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-rw7v-4hrq-x6r9",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/py-pdf/fpdf2/security/advisories/GHSA-rw7v-4hrq-x6r9"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1824",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1824"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/pull/1857",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/pull/1857"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/0d27190a8c907e02ebe9cd881471a14d0622b432",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/0d27190a8c907e02ebe9cd881471a14d0622b432"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/commit/6e23f610b7946e96e9a5dd0535dcbfbe7ac1397d",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/commit/6e23f610b7946e96e9a5dd0535dcbfbe7ac1397d"
            },
            {
              "name": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/py-pdf/fpdf2/releases/tag/2.8.8"
            }
          ],
          "source": {
            "advisory": "GHSA-rw7v-4hrq-x6r9",
            "discovery": "UNKNOWN"
          },
          "title": "fpdf2 implicitly loads external URLs and local image paths when rendering attacker-controlled content"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-114609",
        "datePublished": "2026-10-22T17:18:22.802Z",
        "dateReserved": "2026-10-21T20:34:25.599Z",
        "dateUpdated": "2026-10-22T17:18:22.802Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }