Description
I would like to bring to your attention a potential vulnerability in the latest version of https://github.com/m32/endesive related to the method on endesive/pdf/PyPDF2/pdf.py which is on function (line 2000): def readNextEndLine(self, stream).The vulnerability bears similartities to the recently disclosed GHSA-jrm6-h9cq-8gqw in the project https://github.com/py-pdf/pypdf
The source vulnerability information is as follows:
CVE Identifier: GHSA-jrm6-h9cq-8gqw
Security issue or vulnerability information
Reference: https://nvd.nist.gov/vuln/detail/CVE-2023-36810
Patch: py-pdf/pypdf@c6c56f5
Vulnerability Description:
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.
Considering the potential risks it may have, I am willing to cooperate with you to verify, address, and report the identified vulnerability promptly through responsible means. If you require any further information or assistance, please comment and discuss here.