Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 95%

CVE-2026-53511: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal calibre

0
High
VulnerabilityCVE-2026-53511cvecve-2026-53511cwe-94gcve
Published: 07/07/2026 (07/07/2026, 20:46:49 UTC)
Source: CVE Database V5
Vendor/Project: kovidgoyal
Product: calibre

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 v4.0

Score 8.5high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
kovidgoyal/calibre
pkg:github/kovidgoyal/calibre
Affected versions
<9.10.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 11:59:47 UTC

Technical Analysis

CVE-2026-53511 is a code injection vulnerability (CWE-94) in the calibre e-book manager. Before version 9.10.0, calibre improperly controls the generation of code by passing unsanitized python: templates embedded in custom column definitions within calibre:user_metadata to the exec() function in the template formatter. This allows a maliciously crafted EPUB, OPF, or PDF file to execute arbitrary Python code when its metadata is read, such as during Add books or Edit books operations. The vulnerability is fixed in calibre version 9.10.0.

Potential Impact

An attacker can execute arbitrary Python code on the system running calibre by supplying a specially crafted e-book file. This can lead to full compromise of the user's environment with the privileges of the calibre process. The vulnerability requires user interaction (opening or editing a malicious file) and local access to the vulnerable application.

Mitigation Recommendations

Upgrade calibre to version 9.10.0 or later, where this vulnerability is fixed. No other official remediation or temporary fix is indicated. Users should avoid opening untrusted EPUB, OPF, or PDF files in vulnerable versions until patched.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-09T17:30:33.455Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4d6893c9d9e3dbe3d5457a

Added to database: 07/07/2026, 20:58:59 UTC

Last enriched: 07/15/2026, 11:59:47 UTC

Last updated: 08/21/2026, 11:03:56 UTC

Views: 90

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses