{"id":"CVE-2026-25731","state":"PUBLISHED","title":"Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export","description":"calibre is an e-book manager. Prior to 9.2.0, a Server-Side Template Injection (SSTI) vulnerability in Calibre's Templite templating engine allows arbitrary code execution when a user converts an ebook using a malicious custom template file via the --template-html or --template-html-index command-line options. This vulnerability is fixed in 9.2.0.","publishedAt":"2026-02-06T20:14:35.822Z","updatedAt":"2026-02-06T21:02:01.147Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["kovidgoyal calibre"],"affected":[{"vendor":"kovidgoyal","product":"calibre","versions":[{"version":"< 9.2.0","status":"affected"}]}],"references":["https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc","https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379"],"weaknesses":["CWE-1336"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/25xxx/CVE-2026-25731.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-25731","state":"PUBLISHED","datePublished":"2026-02-06T20:14:35.822Z","dateUpdated":"2026-02-06T21:02:01.147Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-05T16:48:00.427Z"},"containers":{"cna":{"title":"Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export","descriptions":[{"lang":"en","value":"calibre is an e-book manager. Prior to 9.2.0, a Server-Side Template Injection (SSTI) vulnerability in Calibre's Templite templating engine allows arbitrary code execution when a user converts an ebook using a malicious custom template file via the --template-html or --template-html-index command-line options. This vulnerability is fixed in 9.2.0."}],"affected":[{"vendor":"kovidgoyal","product":"calibre","versions":[{"version":"< 9.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc","name":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379","name":"https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","lang":"en","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-06T20:14:35.822Z"},"source":{"advisory":"GHSA-xrh9-w7qx-3gcc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-02-06T21:01:31.473045Z","id":"CVE-2026-25731","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-06T21:02:01.147Z"}}]}}}