CVE-2025-59933: libvips is vulnerable to Buffer Over-Read in poppler-based pdfload
libvips is a demand-driven, horizontally threaded image processing library. For versions 8.17.1 and below, when libvips is compiled with support for PDF input via poppler, the pdfload operation is affected by a buffer read overflow when parsing the header of a crafted PDF with a page that defines a width but not a height. Those using libvips compiled without support for PDF input are unaffected as well as thosewith support for PDF input via PDFium. This issue is fixed in version 8.17.2. A workaround for those affected is to block the VipsForeignLoadPdf operation via vipsoperationblockset, which is available in most language bindings, or to set VIPSBLOCKUNTRUSTED environment variable at runtime, which will block all untrusted loaders including PDF input via poppler.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-59933?
CVE-2025-59933 is classified as a buffer read overflow vulnerability that can potentially lead to information disclosure or system instability.
How do I fix CVE-2025-59933?
To fix CVE-2025-59933, upgrade libvips to version 8.17.2 or later, which resolves the buffer read overflow issue.
Which versions of libvips are affected by CVE-2025-59933?
CVE-2025-59933 affects libvips versions up to and including 8.17.1 when compiled with PDF input support via poppler.
What impact does CVE-2025-59933 have on applications using libvips?
Applications using affected versions of libvips may experience crashes or unexpected behavior when processing crafted PDF files.
Is there a temporary workaround for CVE-2025-59933?
A temporary workaround for CVE-2025-59933 is to disable PDF input support in libvips until an upgrade can be performed.