Allocation of Resources Without Limits or Throttling in PyPDF - CVE-2026-31826
Published: April 27, 2026
PyPDF
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to allocation of resources without limits or throttling in the content stream parser when parsing a PDF content stream with a manipulated /Length value. A remote attacker can craft a PDF with a large /Length value to cause a denial of service.
This issue primarily affects cases where the library reads from buffers of unknown size, such as file objects opened in binary mode.