CVE-2026-53511
HIGH
8.5
CVSS 4.0
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.
Metadata
Severity & Metrics
8.5
HIGH CVSS 4.0
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 products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| kovidgoyal | calibre | — | < 9.10.0 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-94 | cna | CWE-94: Improper Control of Generation of Code ('Code Injection') |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 8.5 | HIGH | 4.0 | cna | 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 |
References (3)
- https://github.com/kovidgoyal/calibre/security/advisories/GHSA-2j4m-2q7x-2c47 https://github.com/kovidgoyal/calibre/security/advisories/GHSA-2j4m-2q7x-2c47
- https://github.com/kovidgoyal/calibre/commit/712f4e1ff5c1e798c335bef3bacc4efdee052e9c https://github.com/kovidgoyal/calibre/commit/712f4e1ff5c1e798c335bef3bacc4efdee052e9c
- https://github.com/kovidgoyal/calibre/releases/tag/v9.10.0 https://github.com/kovidgoyal/calibre/releases/tag/v9.10.0