Skip to content

← Public intelligence

PyPI package

pypdf2

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

3 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.2PyPIAmendedPublished

    PyPDF2 vulnerable to possible Infinite Loop when reading malformed objects

    CVE-2023-36807 · GHSA-hm9v-vj3r-r55m

    Affected
    • PyPI pypdf2 >= 2.10.5, <= 2.10.5
    Fixed in
    2.10.6· Vendor fix available
    Issue
    Impact 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. Patches The issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 Workarounds If you cannot update your version of PyPDF2 (preferably to pypdf3.1.0 as PyPDF2 is deprecated), you should modify PyPDF2/generic/datastructures.py::readobject. Replace: by References pypdf issue #1329 pypdf PR #1331

    Recommended action: Upgrade to 2.10.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 6.2PyPIAmendedPublished

    PyPDF2 quadratic runtime with malformed PDF missing xref marker

    CVE-2023-36810 · GHSA-jrm6-h9cq-8gqw

    Affected
    • PyPI pypdf2 <= 1.27.8
    Fixed in
    1.27.9· Vendor fix available
    Issue
    Impact 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. Patches https://github.com/py-pdf/pypdf/pull/808 Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading? References PyPDF2 PR #808 PyPDF2 Issue #582

    Recommended action: Upgrade to 1.27.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 6.9PyPIAmendedPublished

    Manipulated inline images can cause Infinite Loop in PyPDF2

    CVE-2022-24859 · GHSA-xcjx-m2pj-8g79

    Affected
    • PyPI pypdf2 < 1.27.5
    Fixed in
    1.27.5· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 user wrote the following code: Patches PyPDF2==1.27.5 and later are patched. Credits to Sebastian Krause for finding (issue) and fixing (PR) it.

    Recommended action: Upgrade to 1.27.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →