CVE-2026-25731: Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export
Vulnerability summary
CVE-2026-25731 is a high (CVSS 7.8) vulnerability in calibre-ebook calibre. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 21.1% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-02-2026PublishedVulnerability first disclosed.
- 06-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.28% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundCalibre
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Calibre-ebook1 product
- calibre< 9.2.0
Debian1 product
- calibre< 6.13.0+repack-2+deb12u6 | < 8.5.0+ds-1+deb13u2 | < 9.2.0+ds+~0.10.5-1
Kovidgoyal1 product
- calibre< 9.2.0
Ubuntu1 product
- calibreAll versions (No fix recorded)
4 vendors · 4 products
References
5 links- github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gccX Refsource CONFIRMREPORTExploitThird Party Advisory
- github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379X Refsource MISCREPORTPatch