CVE-2026-25731CWE-1336

Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export

High · published February 6, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
20.5
In the wild
Unconfirmed
What it is

⚡ A sneaky Server-Side Template Injection (SSTI) in Calibre can let attackers execute arbitrary code when converting eBooks using a malicious template! This is a serious warning for users! 🔥 Think of Calibre's templating engine like a restaurant kitchen taking in delivery orders without verifying the ingredients. If a malicious chef sends in a recipe that includes hazardous materials, the unsuspecting kitchen can whip up something dangerously toxic! An attacker could gain full control over the server by executing arbitrary code through a crafted template file. This means they could access sensitive data, modify eBooks, or even take down the entire system, leading to potentially devastating consequences for users.

Put simply

Think of Calibre's templating engine like a restaurant kitchen taking in delivery orders without verifying the ingredients. If a malicious chef sends in a recipe that includes hazardous materials, the unsuspecting kitchen can whip up something dangerously toxic! Prior to version 9.2.0, the Templite templating engine in Calibre allowed users to specify custom templates via command-line options, which could be exploited for remote code execution due to insufficient input validation.

What to do

An attacker could gain full control over the server by executing arbitrary code through a crafted template file. This means they could access sensitive data, modify eBooks, or even take down the entire system, leading to potentially devastating consequences for users. Upgrade Calibre to version 9.2.0 immediately to patch this vulnerability. If you're using a custom template, ensure it's from a trusted source and consider reviewing your template files for security best practices. You've got this! Stay proactive and secure your Calibre installation today! 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00290 · 20.5th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2026-02-06T20:14Z
EPSS history
Timeline
  • 06 FEB 20:14Z
    Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export
    cvelistv5