calibre: Arbitrary Code Execution in Template Formatter via Book Metadata
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.
Summary
calibre is an e-book manager. Prior to 9.10.0, a malicious EPUB, OPF, or PDF file can execute arbitrary Python code when its metadata is read by calibre, including through Add books or Edit books, by embedding a custom column definition with a python: template in calibre:user_metadata that is passed unsanitized to exec() in the template formatter. This issue is fixed in version 9.10.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kovidgoyal | calibre | before 9.10.0 | 9.10.0 | Patch available | CNA |
- calibre Vendorkovidgoyal Affected before 9.10.0 Fixed in 9.10.0 Patch available CNA
Remediation
- Fix · CNA calibre (kovidgoyal) Fixed in 9.10.0
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53511
References
More kovidgoyal vulnerabilities
- TI-2026-26023 Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check CVSS 3.1CRITICAL 9.9
- TI-2026-51129 Kitty: Command injection into the child shell via chained @kitty-echo + @kitty-ssh DCS escape sequences CVSS 4.0HIGH 7.3
- TI-2026-26014 Kitty has a Heap Buffer Overflow in its Graphics Protocol Handler CVSS 3.1HIGH 8.8
- TI-2026-51386 Missing authorization in kovidgoyal calibre CVSS 3.1HIGH 7.5
- TI-2026-51385 calibre: Bypass of Python template restrictions via nested `template()` leading to RCE CVSS 4.0HIGH 8.5
- TI-2026-25627 calibre has a path traversal vulnerability CVSS 4.0HIGH 8.2
Sources
- CVE-2026-53511 · CVE Program
- CVE-2026-53511 · NVD
- FIRST EPSS
- CVE-2026-53511 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences