CVE-2026-53511
Deferred Deferred - Pending Action

Arbitrary Code Execution in Calibre via Malicious EPUB Metadata

Vulnerability report for CVE-2026-53511, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-07

Last updated on: 2026-07-09

Assigner: GitHub, Inc.

Description

calibre is an e-book manager. Prior to 9.10.0, a malicious EPUB, OPF, or PDF file can execute arbitrary Python code when its metadata is read by calibre, including through Add books or Edit books, by embedding a custom column definition with a python: template in calibre:user_metadata that is passed unsanitized to exec() in the template formatter. This issue is fixed in version 9.10.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-07
Last Modified
2026-07-09
Generated
2026-07-15
AI Q&A
2026-07-08
EPSS Evaluated
2026-07-14
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
calibre calibre to 9.10.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in calibre versions prior to 9.10.0, an e-book manager. A malicious EPUB, OPF, or PDF file can execute arbitrary Python code when its metadata is read by calibre. This happens because the file can embed a custom column definition using a python: template in calibre:user_metadata, which is passed unsanitized to the exec() function in the template formatter.

Impact Analysis

The vulnerability allows execution of arbitrary Python code with limited privileges when a malicious e-book file is processed by calibre. This can lead to unauthorized actions on the affected system, potentially compromising data integrity, confidentiality, or availability depending on the code executed.

Mitigation Strategies

To mitigate this vulnerability, upgrade calibre to version 9.10.0 or later, where the issue is fixed.

Avoid opening or importing EPUB, OPF, or PDF files from untrusted sources until the upgrade is applied.

Compliance Impact

The vulnerability in calibre allows arbitrary code execution when processing malicious e-book files, which can lead to unauthorized actions on the affected system. This poses significant risks to the confidentiality, integrity, and availability of data handled by the software.

Such risks can impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of sensitive data and prevention of unauthorized access or processing. If exploited, this vulnerability could lead to data breaches or unauthorized data manipulation, thereby violating these regulatory requirements.

However, the provided information does not explicitly discuss compliance implications or specific regulatory impacts.

Detection Guidance

This vulnerability is triggered when calibre reads metadata from malicious EPUB, OPF, or PDF files containing embedded Python code in the calibre:user_metadata field. Detection involves identifying such crafted files before they are processed by calibre.

Since the exploit relies on opening or adding malicious e-book files to calibre, network detection is limited. Instead, detection should focus on scanning files for suspicious python: templates or embedded Python code in metadata fields.

You can use commands to inspect EPUB or PDF files for suspicious metadata content. For example:

  • For EPUB files (which are ZIP archives), unzip and inspect the OPF metadata file for 'python:' templates:
  • unzip -p suspicious.epub content.opf | grep 'python:'
  • For PDF files, extract XMP metadata and search for 'python:' templates:
  • pdfxmpextract suspicious.pdf | grep 'python:'

Alternatively, use tools like 'strings' or metadata extraction utilities to search for 'python:' in user metadata fields.

Note that these commands help identify potentially malicious files before they are opened in calibre, mitigating risk of code execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53511. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart