{"id":"CVE-2026-73248","published":"2026-08-11T21:56:08Z","modified":"2026-08-12T13:52:18Z","title":"calibre: Bypass of Python template restrictions via nested `template()` leading to RCE","vendor":"kovidgoyal","product":"calibre","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00197,"percentile":0.09619,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-4f7g-rjfp-hmvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kovidgoyal/calibre/commit/dac9990458374a81a5372a768bba6527d965aac8","tags":["x_refsource_MISC"]},{"url":"https://github.com/kovidgoyal/calibre/releases/tag/v9.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":1.92},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"kovidgoyal","affectedVersions":[{"vendor":"kovidgoyal","product":"calibre","versions":["< 9.12.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-12T12:41:56.579042Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-57014","exploited":false,"provenance":"source"}}