Description
MuPDF before 1.27.0-rc1 contains an uncontrolled recursion vulnerability in the EPUB CSS rendering engine that allows remote attackers to cause a denial of service by supplying a maliciously crafted EPUB file with deeply nested HTML elements and inline CSS styles. The function value_from_inheritable_property() in css-apply.c recurses through the CSS property inheritance chain without a depth limit, exhausting the process stack and causing a crash in any application using MuPDF for EPUB rendering.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ArtifexSoftware | mupdf | < 1.27.0-rc1 | 1.27.0-rc1 |
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.27.0+ds1-2 | — |
| Debian 13 | mupdf | No fix yet | — |
| Debian 12 | mupdf | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mupdf | No fix yet | — |
| Ubuntu 26.04 LTS | mupdf | No fix yet | — |
| Ubuntu 25.10 | mupdf | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 22.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 20.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 18.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 16.04 LTS | mupdf | No fix yet | — |
References
- mupdf 1.27.0-rc1 Release Notes release-notes
- https://bugs.ghostscript.com/show_bug.cgi?id=708840 technical-description exploit
- https://github.com/ArtifexSoftware/mupdf/commit/70b71ab22e6de4d4c44cd301c88231f623a4e94e patch
- https://www.vulncheck.com/advisories/mupdf-rc1-stack-exhaustion-dos-via-epub-css-rendering third-party-advisory