{"id":"CVE-2026-54530","published":"2026-06-22T20:25:29Z","modified":"2026-06-23T16:11:37Z","title":"pypdf: Possible infinite loop when retrieving fonts for layout-mode text extraction","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00174,"percentile":0.0707,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-52x6-gq3r-vpf4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/pull/3830","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.13.0","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":1.41},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 6.13.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:52:35.536228Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pypdf","vulnerableRanges":["<6.13.0"],"patched":["6.13.0"],"from":["GHSA-52x6-gq3r-vpf4","PYSEC-2026-3009"],"provenance":"source"}],"summary":{"text":"The flaw is in pypdf, a pure-Python PDF library, where crafted input can cause an infinite loop during font retrieval in layout-mode text extraction. An attacker who can supply a malicious PDF can trigger it locally, without authentication or user interaction, provided the application extracts text in layout mode; the impact is a hang or denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:41Z"},"euvd":{"id":"EUVD-2026-38354","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48735","published":"2026-05-28","fixed":"6.12.1","kev":false},{"cve":"CVE-2026-49460","published":"2026-06-22","fixed":"6.12.2","kev":false},{"cve":"CVE-2026-49461","published":"2026-06-22","fixed":"6.12.2","kev":false,"link":{"from":"CVE-2026-49461","to":"CVE-2026-54530","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.12.2","toFixed":"6.13.0","daysApart":0}]}},{"cve":"CVE-2026-54530","published":"2026-06-22","fixed":"6.13.0","kev":false},{"cve":"CVE-2026-54531","published":"2026-06-22","fixed":"6.13.0","kev":false},{"cve":"CVE-2026-54651","published":"2026-06-22","fixed":"6.13.1","kev":false,"link":{"from":"CVE-2026-54530","to":"CVE-2026-54651","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pypdf","fromFixed":"6.13.0","toFixed":"6.13.1","daysApart":0}]}},{"cve":"CVE-2026-59937","published":"2026-07-08","fixed":"6.14.0","kev":false}],"package":"PyPI:pypdf"}}