{"id":"CVE-2026-48155","aliases":["GHSA-cj93-chg6-vgv8","PYSEC-2026-3016"],"title":"pypdf: Possible large memory usage for large offsets for layout mode text","summary":"pypdf: Possible large memory usage for large offsets for layout mode text","severity":"medium","vendor":"pypdf","product":"pypdf","ecosystem":"pip","affected":["pypdf < 6.12.0"],"patched":["pypdf 6.12.0"],"published":"2026-06-12","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:51:08.468487559Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-cj93-chg6-vgv8","references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-cj93-chg6-vgv8"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48155"},{"url":"https://github.com/py-pdf/pypdf/pull/3790"},{"url":"https://github.com/py-pdf/pypdf"},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.12.0"},{"url":"https://github.com/advisories/GHSA-cj93-chg6-vgv8"}],"tags":["osv","pip","ghsa"],"epss":0.00127,"epssPercentile":0.02718,"cwe":["CWE-400"],"ingestedAt":"2026-07-07T15:41:59.225Z","slug":"CVE-2026-48155","body":"## Overview\n\n### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets.\n\n### Patches\n\nThis has been fixed in [pypdf==6.12.0](https://github.com/py-pdf/pypdf/releases/tag/6.12.0).\n\n### Workarounds\n\nIf developers are unable to immediately upgrade, they should consider applying the changes from PR [#3790](https://github.com/py-pdf/pypdf/pull/3790).\n\n## Affected packages\n\n- `pypdf < 6.12.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `pypdf 6.12.0`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}