Skip to content
Heist/ feed
Back to feed
Medium

pypdf: Possible infinite loop when hitting EOF in standard xref table

Type: advisorySources: Official CVE List

pypdf is a free and open-source pure-python PDF library. Prior to 6.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.

Products
pypdf
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-113794
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 17:43 UTC · Revision 2

Source evidence

pypdf: Possible infinite loop when hitting EOF in standard xref table

core-cve · Original source

Published 21 Oct 2026, 15:59 UTC

pypdf is a free and open-source pure-python PDF library. Prior to 6.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.

cve:CVE-2026-113794

pypdf

Fixed versions: Not specified

Complete source record
{
  "id": "2bc92d4201ea3ca24107f28dcf08555b53ba220b8b205e8f1e239022db0f979c",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-113794",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pypdf: Possible infinite loop when hitting EOF in standard xref table",
    "summary": "pypdf is a free and open-source pure-python PDF library. Prior to 6.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.",
    "evidence": "cve:CVE-2026-113794",
    "products": [
      {
        "name": {
          "value": "pypdf",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-113794",
      "aliases": [
        "CVE-2026-113794"
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 6,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
            "userInteraction": "PASSIVE",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "HIGH",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE"
          }
        }
      ],
      "affected": [
        {
          "vendor": "py-pdf",
          "product": "pypdf",
          "versions": [
            {
              "status": "affected",
              "version": "< 6.20.0"
            }
          ]
        }
      ],
      "modified": "2026-10-28T01:20:41.647Z",
      "provider": "cve",
      "references": [
        "https://github.com/py-pdf/pypdf/security/advisories/GHSA-39mj-jf6j-2qj3",
        "https://github.com/py-pdf/pypdf/issues/4169",
        "https://github.com/py-pdf/pypdf/pull/4170",
        "https://github.com/py-pdf/pypdf/commit/37e1cd681744bac38b159f7e1c614eee8d639c58",
        "https://github.com/py-pdf/pypdf/releases/tag/6.20.0"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-113794",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-28T01:20:32.593442Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-28T01:20:41.647Z"
            }
          }
        ],
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-21T15:59:26.054Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-113794",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 404490,
  "published_at": "2026-10-21T15:59:26.054+00:00"
}