| Name | CVE-2025-71382 |
| 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. |
| 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) |
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 | vulnerable |
| bullseye (security) | 1.17.0+ds1-2+deb11u2 | vulnerable |
| bookworm, bookworm (security) | 1.21.1+ds2-1+deb12u1 | vulnerable |
| trixie (security), trixie | 1.25.1+ds1-6+deb13u1 | vulnerable |
| forky, sid | 1.27.0+ds1-6 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| mupdf | source | (unstable) | 1.27.0+ds1-2 | | | |
Notes
[trixie] - mupdf <no-dsa> (Minor issue)
[bookworm] - mupdf <postponed> (Minor issue; stack-exhaustion DoS via unbounded recursion over the CSS inheritance chain in html/css-apply.c, needs crafted EPUB opened by victim)
[bullseye] - mupdf <postponed> (Minor issue; stack-exhaustion DoS via unbounded recursion over the CSS inheritance chain in html/css-apply.c, needs crafted EPUB opened by victim)
https://bugs.ghostscript.com/show_bug.cgi?id=708840
Fixed by: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=70b71ab22e6de4d4c44cd301c88231f623a4e94e (1.27.0-rc1)