SB20260629105 - Multiple vulnerabilities in Calibre
Published: June 29, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 vulnerabilities.
1) Improper Neutralization of Special Elements Used in a Template Engine (CVE-ID: CVE-2026-25731)
CWE-ID: CWE-1336 - Improper Neutralization of Special Elements Used in a Template Engine
CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to server-side template injection in the HTML export feature when processing crafted template content during conversion. A remote attacker can embed template expressions in a crafted input to execute arbitrary code.
User interaction is required to open or convert crafted content.
2) Path traversal (CVE-ID: CVE-2026-25635)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to path traversal in src/calibre/ebooks/chm/reader.py when processing a crafted CHM file during conversion. A remote attacker can trick the victim into converting a malicious CHM file to execute arbitrary code.
On Windows, arbitrary file write outside the extraction directory can be leveraged by placing a payload in the Startup folder, which executes on the next login. User interaction is required to convert the crafted CHM file via the GUI or the ebook-convert CLI.
3) Path traversal (CVE-ID: CVE-2026-25636)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to path traversal in file handling when opening a crafted file. A remote attacker can trick the victim into opening a crafted file to execute arbitrary code.
The issue can also lead to arbitrary file corruption. User interaction is required to open a crafted file.
Remediation
Install update from vendor's website.
References
- https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc
- https://github.com/kovidgoyal/calibre/security/advisories/GHSA-32vh-whvh-9fxr
- https://github.com/user-attachments/assets/5bf1da9a-2d28-4c03-a31a-9ed62f7db761
- https://github.com/kovidgoyal/calibre/security/advisories/GHSA-8r26-m7j5-hm29