| Name | CVE-2026-25731 |
| Description | calibre is an e-book manager. Prior to 9.2.0, a Server-Side Template Injection (SSTI) vulnerability in Calibre's Templite templating engine allows arbitrary code execution when a user converts an ebook using a malicious custom template file via the --template-html or --template-html-index command-line options. This vulnerability is fixed in 9.2.0. |
| 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 |
|---|
| calibre (PTS) | bullseye | 5.12.0+dfsg-1+deb11u2 | vulnerable |
| bullseye (security) | 5.12.0+dfsg-1+deb11u3 | vulnerable |
| bookworm | 6.13.0+repack-2+deb12u5 | vulnerable |
| trixie | 8.5.0+ds-1+deb13u1 | vulnerable |
| forky | 8.16.2+ds+~0.10.5-3 | vulnerable |
| sid | 9.4.0+ds+~0.10.5-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| calibre | source | (unstable) | 9.2.0+ds+~0.10.5-1 | | | |
Notes
[trixie] - calibre <no-dsa> (Will be fixed via point update)
[bookworm] - calibre <no-dsa> (Will be fixed via point update)
[bullseye] - calibre <ignored> (Too intrusive to backport)
https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc
Fixed by: https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379 (v9.2.0)