Pypdf Project Pypdf vulnerabilities

57 vulnerabilities

Known vulnerabilities in Pypdf Project Pypdf, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.

RoutineCVE-2026-119209py-pdf · pypdf +7 morepypdf: Possible large memory usage when parsing cross-reference streamspypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can consume excessive memory while opening a crafted PDF containing cross-reference streams that declare very large entry counts. Highly compressible streams and /Prev chains can multiply the number of parsed entries across a document, while negative /Index counts can bypass the existing per-stream clamp. This issue is fixed in version 6.21.3.CVSS7.1HighEPSS0.38%RoutineCVE-2026-119206py-pdf · pypdf +7 morepypdf: Possible long runtimes when retrieving page labelspypdf is a free and open-source pure-python PDF library. Prior to 6.21.3, pypdf can take excessive time to retrieve page labels from a crafted PDF containing a flat page-label number tree with many ranges. The page_labels property resolves each page independently and repeatedly scans the same /Nums array from the beginning, causing work to grow with both the page count and the number of label ranges. This issue is fixed in version 6.21.3.CVSS7.1HighEPSS0.33%RoutineCVE-2026-119205py-pdf · pypdf +7 morepypdf: Possible infinite loop when cloning dictionariespypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can enter an infinite loop when cloning or duplicating a crafted cyclic DictionaryObject. Clone traversal checked generated destination references rather than the original source references, allowing some source cycles to evade the visited-object check. This issue is fixed in version 6.21.4.CVSS7.1HighEPSS0.33%RoutineCVE-2026-119204py-pdf · pypdf +8 morepypdf: Possible large memory usage when parsing page treepypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can consume excessive memory while parsing a crafted PDF page tree containing many shared resources. Page-tree flattening copies page dictionary and inherited resource entries without a document-wide entry budget, allowing the crafted resource structure to cause disproportionate allocations. This issue is fixed in version 6.21.4.CVSS7.1HighEPSS0.33%RoutineCVE-2026-119203py-pdf · pypdf +8 morepypdf: Possible infinite loop when hitting EOF in standard xref table during trailer searchpypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can enter an infinite loop while opening a crafted incomplete PDF whose standard cross-reference table reaches the end of the file without a trailer. The trailer search can repeatedly rewind to the same stream position instead of terminating when parsing makes no progress, blocking the processing thread. This issue is fixed in version 6.21.4.CVSS7.1HighEPSS0.33%PrioritiseCVE-2026-103000py-pdf · pypdf +7 morepypdf: Possible large memory usage when retrieving alphabetical page labelspypdf is a free and open-source pure-python PDF library. Prior to 6.19.0, a crafted PDF can provide unusually large alphabetical page-label values that cause pypdf/_page_labels.py to generate strings beyond a reasonable page-label length when an application retrieves document page labels, consuming excessive memory and potentially making the application unavailable. This issue is fixed in version 6.19.0.CVSS8.7HighEPSS0.35%PrioritiseCVE-2026-102999py-pdf · pypdf +7 morepypdf: Possible long runtimes with large amount of embedded filespypdf is a free and open-source pure-python PDF library. Prior to 6.19.0, a crafted PDF containing many embedded files can cause the dictionary-based attachments API in pypdf/_doc_common.py to reparse the full attachment list for each content lookup, producing repeated work and long runtimes when an application accesses the embedded-file mapping. This issue is fixed in version 6.19.0.CVSS8.7HighEPSS0.35%PrioritiseCVE-2026-102998py-pdf · pypdf +7 morepypdf: Possible long runtimes when generating appearance streamspypdf is a free and open-source pure-python PDF library. Prior to 6.19.0, a crafted PDF with form field values can cause pypdf/generic/_appearance_stream.py appearance-stream generation to repeat invariant selection-data work inside a loop when an application updates fields with flattening enabled, resulting in excessive runtimes and application unavailability. This issue is fixed in version 6.19.0.CVSS8.7HighEPSS0.34%PrioritiseCVE-2026-102997py-pdf · pypdf +8 morepypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up)pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF containing a partially malformed /FlateDecode stream with padded data can force pypdf/filters.py to use inefficient byte-by-byte decompression while the earlier recovery counter fails to advance for bytes that successfully decode, causing long runtimes and application unavailability. This is a residual issue after the malformed FlateDecode recovery fix. This issue is fixed in version 6.18.1.CVSS8.7HighEPSS0.34%PrioritiseCVE-2026-102996py-pdf · pypdf +7 morepypdf: Possible large memory usage when parsing font datapypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF can provide a TrueType or Type1 simple font with an unusually large /Widths array, causing pypdf/_font.py Font._collect_tt_t1_character_widths to process entries beyond the 256 character codes meaningful for a simple font and consume excessive memory during operations such as text extraction. This issue is fixed in version 6.18.1.CVSS8.7HighEPSS0.34%PrioritiseCVE-2026-102995py-pdf · pypdf +8 morepypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2)pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF can place unusually large source-code or destination-string tokens in a font /ToUnicode mapping, causing pypdf/_cmap.py parse_bfchar to decode and retain oversized values during operations such as text extraction and consume excessive memory. This is a second follow-up to earlier /ToUnicode resource-consumption fixes and is limited to the remaining token-length path. This issue is fixed in version 6.18.1.CVSS8.7HighEPSS0.34%PrioritiseCVE-2026-102994py-pdf · pypdf +8 morepypdf: Possible long runtimes/large memory usage when parsing indirect objectspypdf is a free and open-source pure-python PDF library. Prior to 6.18.0, a crafted PDF containing indirect-object identifiers or generation-number tokens that continue for a long time without whitespace can cause pypdf/_reader.py and pypdf/generic/_base.py to scan excessive input through read_until_whitespace, resulting in long runtimes and application unavailability. This issue is fixed in version 6.18.0.CVSS8.7HighEPSS0.34%PrioritiseCVE-2026-102993py-pdf · pypdf +7 morepypdf: Possible large memory usage when retrieving Roman page labelspypdf is a free and open-source pure-python PDF library. Prior to 6.17.0, a crafted PDF can provide unusually large Roman page-label values that cause pypdf/_page_labels.py to generate excessively large numeral strings when an application retrieves document page labels, consuming large amounts of memory and potentially making the application unavailable. This issue is fixed in version 6.17.0.CVSS8.7HighEPSS0.35%RoutineCVE-2026-84311py-pdf · pypdf +8 morepypdf: Possible long runtimes/large memory usage when extracting XForm objectspypdf is a free and open-source pure-python PDF library. Prior to 6.16.1, an attacker can craft a PDF that causes pypdf/_page.py PageObject._extract_text and PageObject.extract_xform_text to traverse a directed acyclic graph of reused form XObjects in which each form invokes a child multiple times, creating exponentially many traversal paths and causing long runtimes and large memory consumption. This issue is fixed in version 6.16.1.CVSS4.8MediumEPSS0.14%RoutineCVE-2026-84310py-pdf · pypdf +8 morepypdf: Possible long runtimes/large memory usage when retrieving outlinespypdf is a free and open-source pure-python PDF library. Prior to 6.16.1, an attacker can craft a PDF that causes pypdf/_doc_common.py _get_outline to consume long runtimes and large amounts of memory when retrieving document outlines with large numbers of entries or deeply nested reused paths because the traversal lacked global entry-count and nesting-depth limits. This issue is fixed in version 6.16.1.CVSS4.8MediumEPSS0.14%RoutineCVE-2026-84309py-pdf · pypdf +8 morepypdf: Possible infinite loop for TreeObject.insert_childpypdf is a free and open-source pure-python PDF library. Prior to 6.16.0, an attacker can craft a PDF whose cyclic tree structure causes pypdf/generic/_data_structures.py TreeObject.insert_child to follow /Next links indefinitely when a writing code path inserts a child, producing an infinite loop. This issue is fixed in version 6.16.0.CVSS6.9MediumEPSS0.18%RoutineCVE-2026-82398py-pdf · pypdf +6 morepypdf: Inefficient handling of non-whitespace inputs in read_until_whitespacepypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, an attacker can craft a PDF that causes long runtimes when the pypdf/_utils.py function read_until_whitespace reads a stream containing a long run of bytes without whitespace. The function repeatedly performs immutable bytes concatenation in a one-byte loop, causing quadratic processing cost for the long non-whitespace input. This issue is fixed in version 6.15.0.CVSS6.9MediumEPSS0.40%RoutineCVE-2026-71870py-pdf · pypdf +10 morepypdf: Possible large memory usage for large /ToUnicode streamspypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, a crafted PDF can cause large memory consumption when pypdf/_cmap.py function parse_bfrange parses unusually large source-code or destination-string tokens in a font /ToUnicode CMap during text extraction. This issue is fixed in 6.15.0.CVSS4.8MediumEPSS0.13%RoutineCVE-2026-71852py-pdf · pypdf +9 morepypdf: Possible long runtimes/large memory usage for large CID font width rangespypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, a crafted PDF can cause long runtimes and large memory consumption when pypdf/_font.py function Font._collect_cid_character_widths expands unusually large CID font /W width ranges or excessive width entries during text extraction. This issue is fixed in 6.15.0.CVSS4.8MediumEPSS0.13%PrioritiseCVE-2026-59936py-pdf · pypdf +9 morepypdf: Possible infinite loop for not terminated inline imagespypdf is a free and open-source pure-python PDF library. Prior to 6.14.1, an attacker can craft a PDF with a page content stream containing a not terminated inline image, causing an infinite loop during inline image end marker detection such as when extracting page text. This issue is fixed in version 6.14.1.CVSS8.7HighEPSS0.34%