p PatchFirst

PatchFirst · Latest vulnerabilities

pypdf2 vulnerabilities · Page 3

Vulnerabilities published for pypdf2 in the last 30 days: 14. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 56

  1. CVE-2026-31826

    Medium · CVSS 6.8EPSS 0.18%No fix published

    pypdf: manipulated stream length values can exhaust RAM

    pypdf is a free and open-source pure-python PDF library. Prior to 6.8.0, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing a content stream with a rather large /Length value, regardless of the actual data length inside the stream. This vulnerability is fixed in 6.8.0.

    Published Updated
  2. CVE-2026-28804

    Medium · CVSS 6.9EPSS 0.41%No fix published

    pypdf: Inefficient decoding of ASCIIHexDecode streams

    pypdf is a free and open-source pure-python PDF library. Prior to version 6.7.5, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires accessing a stream which uses the /ASCIIHexDecode filter. This issue has been patched in version 6.7.5.

    Published Updated
  3. CVE-2026-28351

    Medium · CVSS 6.9EPSS 0.48%No fix published

    Manipulated RunLengthDecode streams can exhaust RAM

    pypdf is a free and open-source pure-python PDF library. Prior to version 6.7.4, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream using the RunLengthDecode filter. This has been fixed in pypdf 6.7.4. As a workaround, consider applying the changes from PR #3664.

    Published Updated
  4. CVE-2026-27888

    Medium · CVSS 6.6EPSS 0.4%No fix published

    pypdf: Manipulated FlateDecode XFA streams can exhaust RAM

    pypdf is a free and open-source pure-python PDF library. Prior to 6.7.3, an attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the `xfa` property of a reader or writer and the corresponding stream being compressed using `/FlateDecode`. This has been fixed in pypdf 6.7.3. As a workaround, apply the patch manually.

    Published Updated
  5. CVE-2026-27628

    Low · CVSS 1.2EPSS 0.4%No fix published

    pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams

    pypdf is a free and open-source pure-python PDF library. Prior to 6.7.2, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. This has been fixed in pypdf 6.7.2. As a workaround, one may apply the patch manually.

    Published Updated
  6. CVE-2026-27026

    Medium · CVSS 6.9EPSS 0.19%No fix published

    pypdf possibly has long runtimes for malformed FlateDecode streams

    pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a malformed /FlateDecode stream, where the byte-by-byte decompression is used. This vulnerability is fixed in 6.7.1.

    Published Updated
  7. CVE-2026-27025

    Medium · CVSS 6.9EPSS 0.19%No fix published

    pypdf has possible long runtimes/large memory usage for large /ToUnicode streams

    pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction. This vulnerability is fixed in 6.7.1.

    Published Updated
  8. CVE-2026-27024

    Medium · CVSS 6.9EPSS 0.19%No fix published

    pypdf has a possible infinite loop when processing TreeObject

    pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires accessing the children of a TreeObject, for example as part of outlines. This vulnerability is fixed in 6.7.1.

    Published Updated
  9. CVE-2026-24688

    Medium · CVSS 5.1EPSS 0.45%No fix published

    pypdf has possible Infinite Loop when processing outlines/bookmarks

    pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.

    Published Updated
  10. CVE-2026-22691

    Low · CVSS 2.7EPSS 0.43%No fix published

    pypdf has possible long runtimes for malformed startxref

    pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for malformed startxref. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for invalid startxref entries. When rebuilding the cross-reference table, PDF files with lots of whitespace characters become problematic. Only the non-strict reading mode is affected. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.

    Published Updated
  11. CVE-2026-22690

    Low · CVSS 2.7EPSS 0.43%No fix published

    pypdf has possible long runtimes for missing /Root object with large /Size values

    pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for missing /Root object with large /Size values. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for actually invalid files. This can be achieved by omitting the /Root entry in the trailer, while using a rather large /Size value. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.

    Published Updated
  12. CVE-2025-55197

    Medium · CVSS 6.6EPSS 0.48%No fix published

    pypdf's Manipulated FlateDecode streams can exhaust RAM

    pypdf is a free and open-source pure-python PDF library. Prior to version 6.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.

    Published Updated
  13. CVE-2023-36810

    Medium · CVSS 6.2EPSS 0.63%Fix available

    Quadratic runtime with malformed PDF missing xref marker in pypdf

    pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. This issue has been addressed in PR 808 and versions from 1.27.9 include this fix. Users are advised to upgrade. There are no known workarounds for this vulnerability.

    • Update to 1.27.9-1
    Published Updated
  14. CVE-2023-36807

    Medium · CVSS 6.2EPSS 0.57%Fix available

    Infinite Loop when reading malformed objects in pypdf

    pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. U

    • Update to 2.10.7-1
    Published Updated
  15. CVE-2023-36464

    Medium · CVSS 6.2EPSS 0.35%Fix available

    Infinite Loop when a comment isn't followed by a character in pypdf

    pypdf is an open source, pure-python PDF library. In affected versions an attacker may craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. That is, for example, the case if the user extracted text from such a PDF. This issue was introduced in pull request #969 and resolved in pull request #1828. Users are advised to upgrade. Users unable to upgrade may modify the line `while peek not in (b"\r", b"\n")` in `pypdf/generic/_data_structures.py` to `while peek not in (b"\r", b"\n", b"")`.

    • Update to 2.12.1-3+deb12u1
    Published Updated
  16. CVE-2022-24859

    Medium · CVSS 6.2EPSS 1.33%Fix available

    Manipulated inline images can cause Infinite Loop in PyPDF2

    PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.

    • Update to 1.27.9-1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →