Calibre Path Traversal Vulnerability Allowing Arbitrary File Inclusion

Vulnerability

A path traversal vulnerability has been identified in Calibre versions prior to 9.6.0. This vulnerability arises in Calibre's processing of images within Markdown and similar text-based files. It allows an attacker to include arbitrary files from the file system into the converted e-book. The issue is compounded by missing authentication and server-side request forgery in the background-image endpoint of the e-book reader web view, enabling exfiltration of the included files without further interaction.

Impact

Exploitation of this vulnerability allows for arbitrary file inclusion in the output e-book, with the potential for sensitive files to be exfiltrated to the attacker.

Reproduction

To reproduce this vulnerability, upload a Markdown file containing an image reference that exploits the path traversal flaw, such as one pointing to a sensitive file like '/etc/passwd'. Then, convert the file to an e-book format using Calibre. The referenced file will be included in the converted e-book, demonstrating the path traversal vulnerability.

Remediation

Users should update to Calibre version 9.6.0 or later, where this vulnerability has been fixed.

Added: Mar 27, 2026, 3:50 PM
Updated: Mar 27, 2026, 3:50 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
5.6
remediation
7.7
relevance
4.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.