| Name | CVE-2018-6187 | 
| Description | In Artifex MuPDF 1.12.0, there is a heap-based buffer overflow vulnerability in the do_pdf_save_document function in the pdf/pdf-write.c file. Remote attackers could leverage the vulnerability to cause a denial of service via a crafted pdf file. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DSA-4334-1 | 
| Debian Bugs | 888464 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| mupdf (PTS) | bullseye | 1.17.0+ds1-2 | fixed | 
 | bullseye (security) | 1.17.0+ds1-2+deb11u1 | fixed | 
 | bookworm | 1.21.1+ds2-1 | fixed | 
 | trixie | 1.25.1+ds1-6 | fixed | 
 | forky | 1.25.1+ds1-7 | fixed | 
 | sid | 1.25.1+ds1-9 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| mupdf | source | stretch | 1.9a+ds1-4+deb9u4 |  | DSA-4334-1 |  | 
| mupdf | source | (unstable) | 1.13.0+ds1-1 |  |  | 888464 | 
Notes
[jessie] - mupdf <no-dsa> (Minor issue)
[wheezy] - mupdf <ignored> (Most likely not affected, minor issue)
https://bugs.ghostscript.com/show_bug.cgi?id=698908
https://lists.debian.org/debian-lts/2018/03/msg00041.html
Fixed by: http://www.ghostscript.com/cgi-bin/findgit.cgi?3e30fbb7bf5efd88df431e366492356e7eb969ec
issued covered by: http://www.ghostscript.com/cgi-bin/findgit.cgi?fa9cd085533f68367c299e058ab3fbb7ad8a2dc6