Description
Multiple stack-based buffer overflows in pdf_shade4.c in MuPDF before commit 20091125231942, as used in SumatraPDF before 1.0.1, allow remote attackers to cause a denial of service and possibly execute arbitrary code via a /Decode array for certain types of shading that are not properly handled by the (1) pdf_loadtype4shade, (2) pdf_loadtype5shade, (3) pdf_loadtype6shade, and (4) pdf_loadtype7shade functions. NOTE: some of these details are obtained from third party information.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- MuPDF < 20091125231942 - 'pdf_shade4.c' Multiple Stack Buffer Overflows EDB-10244 · local · Nov 28, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 37494 third-party-advisory
- mupdf-pdfshade4c-bo(54441) vdb-entry
- 37513 third-party-advisory
- http://blog.kowalczyk.info/software/sumatrapdf/news.html
- 20091128 MuPDF pdf_shade4.c multiple stack-based buffer overflows mailing-list
- ADV-2009-3355 vdb-entry
- https://bugs.ghostscript.com/show_bug.cgi?id=708030
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=a21cc1548993c392e474817bb3d656eb3730d88f
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=cf6860c3d70a2f7a63cdb621cc3b58c891915deb