{"schemaVersion":3,"id":"CVE-2026-25731","aliases":["UBUNTU-CVE-2026-25731","DEBIAN-CVE-2026-25731"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-02-06T20:14:35.822Z","modified":"2026-02-06T21:02:01.147Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0029,"percentile":0.20405,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.03999999999999997,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0025},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0029,"percentile":0.20405}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0025,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00253,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00259,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0029,"percentile":0.20405}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_KOVIDGOYAL_CALIBRE","name":"Calibre","source":"github","url":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-32vh-whvh-9fxr","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine","description":"The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1336.html"}],"affected":[{"vendor":"calibre-ebook","product":"calibre","name":"calibre","label":"calibre","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.2.0","eol":null,"hubHref":"/vendor/calibre-ebook/calibre"},{"vendor":"debian","product":"calibre","name":"calibre","label":"calibre","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/calibre","purlType":"deb","versions":[{"text":"< 6.13.0+repack-2+deb12u6","noFixRecorded":false,"fixedIn":null},{"text":"< 8.5.0+ds-1+deb13u2","noFixRecorded":false,"fixedIn":null},{"text":"< 9.2.0+ds+~0.10.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.13.0+repack-2+deb12u6 | < 8.5.0+ds-1+deb13u2 | < 9.2.0+ds+~0.10.5-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"calibre","name":"calibre","label":"calibre","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/calibre","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"kovidgoyal","product":"calibre","name":"calibre","label":"calibre","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.2.0","eol":null,"hubHref":"/vendor/kovidgoyal/calibre"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc","label":"github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379","label":"github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://ubuntu.com/security/CVE-2026-25731","label":"ubuntu.com/security/CVE-2026-25731","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-25731","label":"www.cve.org/CVERecord?id=CVE-2026-25731","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-25731","label":"security-tracker.debian.org/tracker/CVE-2026-25731","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10587-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10587-1"]},"timeline":[{"kind":"published","date":"2026-02-06T20:14:35.822Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-06T21:02:01.147Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:59:23.919Z","stale":false,"partial":false}}