Skip to content

PDFJinja requires PyPDF2 which is deprecated and has a vulnerability #26

@jasonmnayerji0

Description

@jasonmnayerji0

PyPDF2 is deprecated and has a vulnerability issue which can use 100% of a single core. An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if __parse_content_stream is executed.


One can test this vulnerability by:

  • Downloading MiFO_LFO_FEIS_NOA_Published.3.pdf then running

    from PyPDF2 import PdfReader
    reader = PdfReader("MiFO_LFO_FEIS_NOA_Published.3.pdf")
    page = reader.pages[0]
    page.extract_text()

It is recommended to migrate to pypdf, which is neither deprecated nor does it have this vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions