CVE-2026-73248
Description
A flaw was found in calibre, an e-book manager. A remote attacker could craft a malicious e-book file (such as EPUB, OPF, or PDF) containing specially crafted metadata. When a user opens or imports this file, the application's processing of nested templates can bypass Python template restrictions, leading to the execution of arbitrary Python code. This vulnerability results in remote code execution.
Statement
This vulnerability is rated as Important severity because successful exploitation permits arbitrary code execution in the context of the user opening the document. The risk is constrained by the necessity of user interaction to import or view a specially crafted e-book file. Additionally, Calibre is not shipped or supported in Red Hat Enterprise Linux, limiting the overall impact to community distributions such as Fedora.
Understanding the Weakness (CWE)
Access Control
Technical Impact: Bypass Protection Mechanism
In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Access Control
Technical Impact: Gain Privileges or Assume Identity
Injected code can access resources that the attacker is directly prevented from accessing.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
When a product allows a user's input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. As a result, code injection can often result in the execution of arbitrary code. Code injection attacks can also lead to loss of data integrity in nearly all cases, since the control-plane data injected is always incidental to data recall or writing.
Non-Repudiation
Technical Impact: Hide Activities
Often the actions performed by injected control code are unlogged.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.