Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jasonmnayerji0 opened this issue Jun 5, 2024 · 0 comments

Comments

@jasonmnayerji0
Copy link

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.

@jasonmnayerji0 jasonmnayerji0 changed the title PDFJinja requires PyPDF2 which is deprecated and has vulnerability. PDFJinja requires PyPDF2 which is deprecated and has a vulnerability Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant