{"id":"CVE-2026-53511","published":"2026-07-07T20:46:49Z","modified":"2026-08-18T07:16:16Z","title":"calibre: Arbitrary Code Execution in Template Formatter via Book Metadata","vendor":"kovidgoyal","product":"calibre","tier":"tail","description":{"text":"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.","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.0022,"percentile":0.12717,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-2j4m-2q7x-2c47","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kovidgoyal/calibre/commit/712f4e1ff5c1e798c335bef3bacc4efdee052e9c","tags":["x_refsource_MISC"]},{"url":"https://github.com/kovidgoyal/calibre/releases/tag/v9.10.0","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/08/msg00034.html","tags":[]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":2.54},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"kovidgoyal","affectedVersions":[{"vendor":"kovidgoyal","product":"calibre","versions":["< 9.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-08T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42102","exploited":false,"provenance":"source"}}