Buffer Read Overflow in libvips Affects PDF Processing Functionality
CVE-2025-59933
What is CVE-2025-59933?
The libvips image processing library has a vulnerability affecting its PDF input handling when compiled with poppler support. Specifically, versions 8.17.1 and earlier may experience a buffer read overflow during the pdfload operation when processing a specially crafted PDF file header. This issue arises when the PDF specifies a page width without a corresponding height, potentially leading to unexpected behavior or application crashes. Users of libvips built without PDF input support or using alternative libraries like PDFium remain unaffected. To mitigate this risk, users can block the VipsForeignLoadPdf operation through vips_operation_block_set, or set the VIPS_BLOCK_UNTRUSTED environment variable during runtime to prevent loading untrusted inputs, including PDFs processed via poppler. This vulnerability is addressed in libvips version 8.17.2.
Affected Version(s)
libvips < 8.17.2