CVE-2026-73248 calibre: Bypass of Python template restrictions via nested `template()` leading to RCE
HighCVSS 8.5
EPSS 0.20%
- Published
- Updated
- Exploit status
- No public exploit known
Description
calibre is an e-book manager. Prior to 9.12.0, calibre processes attacker-controlled composite_template metadata from a malicious EPUB, OPF, PDF, or similar file through program: and a nested template() call whose formatter does not inherit allow_python_templates=False, allowing a nested python: template to reach compile_python_template and execute arbitrary Python code when the file is opened or imported. This issue is fixed in version 9.12.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kovidgoyal calibre | = < 9.12.0 | No fix listed |
| debian/calibre(Debian:12) | All versions | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u1 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u10 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u2 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u3 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u4 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u5 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u6 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u7 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u8 | No fix listed |
| debian/calibre(Debian:12) | = 6.13.0+repack-2+deb12u9 | No fix listed |
| debian/calibre(Debian:12) | = 6.14.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.14.1-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.15.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.15.1-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.15.1-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.15.1-3 | No fix listed |
| debian/calibre(Debian:12) | = 6.15.1-4 | No fix listed |
| debian/calibre(Debian:12) | = 6.16.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.17.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.18.1-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.18.1-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.18.1-3 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/calibre(Debian:12) | = 6.19.1-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.20.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.21.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.21.0-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.22.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.23.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.23.0-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.24.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.24.0-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.24.0-2 | No fix listed |
| debian/calibre(Debian:12) | = 6.25.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.26.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.27.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.28.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.28.1+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 6.29.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.0.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.1.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.1.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.10.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.11.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.12.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.12.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.12.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 7.13.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.13.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.14.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.15.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.16.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.16.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.16.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 7.17.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.17.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.17.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 7.17.0+ds-4 | No fix listed |
| debian/calibre(Debian:12) | = 7.18.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.19.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.19.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.2.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.20.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.21.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.21.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.22.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.22.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.23.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.23.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.24.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.24.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.25.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.26.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.26.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.26.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 7.26.0+ds-4 | No fix listed |
| debian/calibre(Debian:12) | = 7.3.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.4.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.5.1+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.5.1+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.5.1+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 7.6.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.7.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.7.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.8.0+ds1-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.8.0+ds1-2 | No fix listed |
| debian/calibre(Debian:12) | = 7.8.0+ds2-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.9.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 7.9.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.0.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.0.1+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.1.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.1.1+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.10.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.10.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.10.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.11.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.11.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.11.1+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.11.1+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.12.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.13.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.13.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.13.0+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.14.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.14.0+ds+~0.10.5-1~bpo13+1 | No fix listed |
| debian/calibre(Debian:12) | = 8.15.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.15.0+ds+~0.10.5-1~bpo13+1 | No fix listed |
| debian/calibre(Debian:12) | = 8.15.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.2+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.2+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.2+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.16.2+ds+~0.10.5-3~bpo13+1 | No fix listed |
| debian/calibre(Debian:12) | = 8.2.1+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.2.100+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.3.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.4.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.4.0+ds1-1~exp1 | No fix listed |
| debian/calibre(Debian:12) | = 8.5.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.6.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.7.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.8.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.8.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.8.0+ds-2+gcc15 | No fix listed |
| debian/calibre(Debian:12) | = 8.8.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.9.0+ds-1 | No fix listed |
| debian/calibre(Debian:12) | = 8.9.0+ds-2 | No fix listed |
| debian/calibre(Debian:12) | = 8.9.0+ds-3 | No fix listed |
| debian/calibre(Debian:12) | = 8.9.0+ds-4 | No fix listed |
| debian/calibre(Debian:12) | = 9.0.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.1.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.10.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.10.0+ds+~0.10.6-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.11.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.11.0+ds+~0.10.6-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.12.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.13.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.14.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.14.0+ds+~0.10.6-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.15.0+ds+~1.1.2-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.15.0+ds+~1.1.2-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.15.0+ds+~1.1.2-3 | No fix listed |
| debian/calibre(Debian:12) | = 9.16.0+ds+~1.1.2-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.17.0+ds+~1.1.2-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.2.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.2.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.2.1+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.3.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.3.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.4.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.5.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-4 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-5 | No fix listed |
| debian/calibre(Debian:12) | = 9.6.0+ds+~0.10.5-6 | No fix listed |
| debian/calibre(Debian:12) | = 9.7.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.7.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.5-4 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.5-5 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:12) | = 9.8.0+ds+~0.10.6-2 | No fix listed |
| debian/calibre(Debian:12) | = 9.9.0+ds+~0.10.6-1 | No fix listed |
| debian/calibre(Debian:13) | All versions | No fix listed |
| debian/calibre(Debian:13) | = 8.10.0+ds-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.10.0+ds-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.10.0+ds-3 | No fix listed |
| debian/calibre(Debian:13) | = 8.11.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.11.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.11.1+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.11.1+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:13) | = 8.12.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.13.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.13.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.13.0+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:13) | = 8.14.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.14.0+ds+~0.10.5-1~bpo13+1 | No fix listed |
| debian/calibre(Debian:13) | = 8.15.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.15.0+ds+~0.10.5-1~bpo13+1 | No fix listed |
| debian/calibre(Debian:13) | = 8.15.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.0+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.0+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.1+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.2+ds+~0.10.5-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.2+ds+~0.10.5-2 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.2+ds+~0.10.5-3 | No fix listed |
| debian/calibre(Debian:13) | = 8.16.2+ds+~0.10.5-3~bpo13+1 | No fix listed |
| debian/calibre(Debian:13) | = 8.5.0+ds-1 | No fix listed |
| debian/calibre(Debian:13) | = 8.5.0+ds-1+deb13u1 | No fix listed |
| debian/calibre(Debian:13) | = 8.5.0+ds-1+deb13u2 | No fix listed |
| debian/calibre(Debian:13) | = 8.5.0+ds-1+deb13u3 | No fix listed |
References
- https://github.com/kovidgoyal/calibre/security/advisories/GHSA-4f7g-rjfp-hmvx exploit
- https://github.com/kovidgoyal/calibre/commit/dac9990458374a81a5372a768bba6527d965aac8
- https://github.com/kovidgoyal/calibre/releases/tag/v9.12.0
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2514427 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-73248 vendor-advisory
- Ubuntu CVE tracker vendor-advisory