# CVE-2026-25731: Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 9.2.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-02-06 · Modified: 2026-02-06
- Aliases: UBUNTU-CVE-2026-25731, DEBIAN-CVE-2026-25731
- Record: https://cvemate.com/vulnerability/CVE-2026-25731 · JSON: https://cvemate.com/vulnerability/CVE-2026-25731/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.274%, percentile 21.128%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- calibre-ebook calibre: \< 9.2.0
- debian calibre (Debian): \< 6.13.0+repack-2+deb12u6 \| \< 8.5.0+ds-1+deb13u2 \| \< 9.2.0+ds+~0.10.5-1
- ubuntu calibre (Ubuntu): All versions (No fix recorded)
- kovidgoyal calibre: \< 9.2.0

## References

- <https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc>
- <https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379>
- <https://ubuntu.com/security/CVE-2026-25731>
- <https://www.cve.org/CVERecord?id=CVE-2026-25731>
- <https://security-tracker.debian.org/tracker/CVE-2026-25731>

---

Data as of 2026-12-05T13:17:59.171Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
