Skip to main content
← All vulnerabilities
CVE-2026-73248

calibre: Bypass of Python template restrictions via nested `template()` leading to RCE

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.12.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • kovidgoyal calibre

    fixed in 9.12.0

References 3

GitHub · kovidgoyal/calibre