Description
Stack-based buffer overflow in the xps_parse_color function in xps/xps-common.c in MuPDF 1.3 and earlier allows remote attackers to execute arbitrary code via a large number of entries in the ContextColor value of the Fill attribute in a Path element.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mupdf | 1.3-2 | — |
| Debian 13 | mupdf | 1.3-2 | — |
| Debian 12 | mupdf | 1.3-2 | — |
| Debian 7 | mupdf | 0.9-2+deb7u2 | DSA-2951-1 |
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 1.3 - 'xps_parse_color()' Stack Buffer Overflow EDB-31090 · local · Jan 20, 2014 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-2951-1 mupdf - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20140218 Re: CVE request: MuPDF Stack-based Buffer Overflow in xps_parse_color() mailing-list
- openSUSE-SU-2014:0309 vendor-advisory
- http://git.ghostscript.com/?p=mupdf.git%3Ba=commitdiff%3Bh=60dabde18d7fe12b19da8b509bdfee9cc886aafc
- 102340 vdb-entry
- http://www.hdwsec.fr/blog/mupdf.html
- DSA-2951 vendor-advisory
- http://bugs.ghostscript.com/show_bug.cgi?id=694957
- 20140120 0day - MuPDF Stack-based Buffer Overflow in xps_parse_color() mailing-list
- 58904 third-party-advisory
- 65036 vdb-entry
- 31090 exploit