calibre is a cross-platform e-book manager for viewing, converting, editing, and cataloging e-books. Versions 9.2.1 and below are vulnerable to Path Traversal through PDB readers (both 132-byte and 202-byte header variants) that allow arbitrary file writes with arbitrary extension and arbitrary content anywhere the user has write permissions. Files are written in 'wb' mode, silently overwriting existing files. This can lead to potential code execution and Denial of Service through file corruption. This issue has been fixed in version 9.3.0.
An attacker provides a specially crafted file in PDB format, which when processed by Calibre causes a file to be written outside the intended working directory — without restrictions on file extension or content. Writing occurs in 'wb' mode (binary overwrite), meaning existing files are silently overwritten without warning. The vulnerability affects both supported PDB header variants (132-byte and 202-byte). An appropriately crafted payload can, for example, overwrite a startup script or other executable file, leading to RCE or permanent data corruption.
An attacker can write a file with arbitrary content and extension to any location in the file system accessible to the Calibre process, which may result in malicious code execution (RCE) or damage to critical files (DoS).
Calibre should be updated to version 9.3.0, in which the vulnerability has been fixed. The patch is available in the project repository (commit b6da1c3878c06eb1356cb0ec1106cb66e0e9bfb8). Until the update is applied, it is recommended to avoid opening PDB files from untrusted sources.
Calibre in versions 9.2.1 and earlier (all platforms supported by Calibre)
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XCalibre Ebook Calibre
APPCalibre-Ebook< 9.3.0
Related vulnerabilities
Path Traversal w Calibre umożliwiający zapis plików i RCE (Windows)
Privilege escalation przez argument injection w Calibre (linux_mount_helper.c)
Calibre: eskalacja uprawnień do root przez untrusted search path
calibre is a cross-platform e-book manager for viewing, converting, editing, and cataloging e-books. Prior to ...
calibre is an e-book manager. Prior to 9.2.0, Calibre's CHM reader contains a path traversal vulnerability tha...