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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kovidgoyal | calibre | < 9.12.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | calibre | 9.12.0+ds+~0.10.6-1 | — |
| Debian 13 | calibre | No fix yet | — |
| Debian 12 | calibre | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | calibre | No fix yet | — |
| Ubuntu 26.04 LTS | calibre | No fix yet | — |
| Ubuntu 24.04 LTS | calibre | No fix yet | — |
| Ubuntu 22.04 LTS | calibre | No fix yet | — |
| Ubuntu 20.04 LTS | calibre | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | calibre | No fix yet | — |
| Ubuntu 16.04 LTS | calibre | No fix yet | — |